CairoCanvas, make sure cairo context is created before using fonts

git-svn-id: trunk@40676 -
This commit is contained in:
jesus 2013-04-01 04:26:02 +00:00
parent 9d6b8229f9
commit 2efb4587ed

View File

@ -583,6 +583,7 @@ end;
//Toy interface
procedure TCairoPrinterCanvas.SelectFont;
begin
RequiredState([csHandleValid]);
SelectFontEx(Font.Style, Font.Name, abs(Font.Size));
SetSourceColor(Font.Color);
end;