<div dir="ltr"><div><div><div>Hi all,<br><br></div>Could someone, please, help me on thi issue:<br><br></div></div>My question is How do I get the system font directory on Windows and Linux?<br><div><div><br>I need the program running on both windows (win32) and linux (gtk).<br>
<br></div><div>So, how do I set the Font Manager search path property?<br><br></div><div><br></div><div>Code fragment example:<br><br></div><div>>>>>>>>>>>>>>>>>>>>>><br>
<br>procedure TestFPImgFont;<br>var<br> AFont: TFreeTypeFont;<br>begin<br> AFont:=nil;<br> try<br> // initialize free type font manager<br> ftfont.InitEngine;<br> FontMgr.SearchPath:='c:\windows\fonts'; // here I need it not to be hard coded<br>
AFont:=TFreeTypeFont.Create; <br></div><div> ... etc.<br></div><div>>>>>>>>>>>>>>>>>>>>>><br><br></div></div></div>