mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 05:40:24 +02:00
CairoCanvas, make sure cairo context is created before using fonts
git-svn-id: trunk@40676 -
This commit is contained in:
parent
9d6b8229f9
commit
2efb4587ed
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user