[fpc-pascal] How do I test the testfppdf on Windows?

silvioprog silvioprog at gmail.com
Sat Mar 5 19:38:39 CET 2016


Hello,

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:

#0
WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT
at :0
#1 ?? at :0
#2 ?? at :0
#3 ?? at :0
#4
WRPR_$SYSTEM_$$_TINTERFACEDOBJECT_$_IUNKNOWN_$_2_$_SYSTEM$_$TINTERFACEDOBJECT_$__$$__RELEASE$$LONGINT
at :0
#5 ?? at :0

I also get some warnings and hints in the compilation:

Compile Project, Target: testfppdf.exe: Success, Warnings: 5, Hints: 10
fpparsettf.pp(768,45) Hint: Converting the operands to "Int64" before doing
the subtract could prevent overflow errors.
fpparsettf.pp(846,25) Hint: Local variable "N" does not seem to be
initialized
fpparsettf.pp(858,21) Hint: Converting the operands to "Int64" before doing
the add could prevent overflow errors.
fpparsettf.pp(866,19) Warning: Implicit string type conversion with
potential data loss from "WideString" to "AnsiString"
fpparsettf.pp(831,3) Note: Local variable "FMT" is assigned but never used
fppdf.pp(1003,28) Hint: Local variable "Buffer" does not seem to be
initialized
fppdf.pp(982,3) Note: Local variable "I" not used
fppdf.pp(2008,3) Note: Local variable "cs" not used
fppdf.pp(2054,44) Warning: Implicit string type conversion with potential
data loss from "UnicodeString" to "AnsiString"
fppdf.pp(2641,3) Note: Local variable "lFontIndex" not used
fppdf.pp(3001,5) Note: User defined: The 1000 value is a work-around until
I can figure out the character spacing problem.
fppdf.pp(3006,31) Warning: Implicit string type conversion from
"AnsiString" to "WideString"
fppdf.pp(3007,35) Warning: Implicit string type conversion from
"AnsiString" to "WideString"
fppdf.pp(3092,37) Warning: Implicit string type conversion with potential
data loss from "WideString" to "AnsiString"
testfppdf.lpr(46,11) Hint: Local proc "EmptyPage" is not used

Lazarus 1.7 rUnknown FPC 3.1.1 i386-win32-win32/win64

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160305/4782f81b/attachment.html>


More information about the fpc-pascal mailing list