<div dir="ltr">Hello,<div><br></div><div>I just created the folder "fonts" and copied the "C:\Windows\Fonts\arial.ttf" into that, so I changed the line "D.AddFont('FreeSans.ttf', 'FreeSans-12' to "D.AddFont('arial.ttf', 'Arial", however, when I try to run the project, I get a SIGSEGV:</div><div><br></div><div><div><font face="monospace, monospace">#0 WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT at :0</font></div><div><font face="monospace, monospace">#1 ?? at :0</font></div><div><font face="monospace, monospace">#2 ?? at :0</font></div><div><font face="monospace, monospace">#3 ?? at :0</font></div><div><font face="monospace, monospace">#4 WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT at :0</font></div><div><font face="monospace, monospace">#5 ?? at :0</font></div></div><div><br></div><div>I also get some warnings and hints in the compilation:</div><div><br></div><div><div><font face="monospace, monospace">Compile Project, Target: testfppdf.exe: Success, Warnings: 5, Hints: 10</font></div><div><font face="monospace, monospace">fpparsettf.pp(768,45) Hint: Converting the operands to "Int64" before doing the subtract could prevent overflow errors.</font></div><div><font face="monospace, monospace">fpparsettf.pp(846,25) Hint: Local variable "N" does not seem to be initialized</font></div><div><font face="monospace, monospace">fpparsettf.pp(858,21) Hint: Converting the operands to "Int64" before doing the add could prevent overflow errors.</font></div><div><font face="monospace, monospace">fpparsettf.pp(866,19) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"</font></div><div><font face="monospace, monospace">fpparsettf.pp(831,3) Note: Local variable "FMT" is assigned but never used</font></div><div><font face="monospace, monospace">fppdf.pp(1003,28) Hint: Local variable "Buffer" does not seem to be initialized</font></div><div><font face="monospace, monospace">fppdf.pp(982,3) Note: Local variable "I" not used</font></div><div><font face="monospace, monospace">fppdf.pp(2008,3) Note: Local variable "cs" not used</font></div><div><font face="monospace, monospace">fppdf.pp(2054,44) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"</font></div><div><font face="monospace, monospace">fppdf.pp(2641,3) Note: Local variable "lFontIndex" not used</font></div><div><font face="monospace, monospace">fppdf.pp(3001,5) Note: User defined: The 1000 value is a work-around until I can figure out the character spacing problem. </font></div><div><font face="monospace, monospace">fppdf.pp(3006,31) Warning: Implicit string type conversion from "AnsiString" to "WideString"</font></div><div><font face="monospace, monospace">fppdf.pp(3007,35) Warning: Implicit string type conversion from "AnsiString" to "WideString"</font></div><div><font face="monospace, monospace">fppdf.pp(3092,37) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"</font></div><div><font face="monospace, monospace">testfppdf.lpr(46,11) Hint: Local proc "EmptyPage" is not used</font></div><div><br></div><div>Lazarus 1.7 rUnknown FPC 3.1.1 i386-win32-win32/win64<br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>