When using PrinceXML 10r7 with the following file (simplified, to illustrate the problem) the text in the PDF does not use Helvetica or Arial as the font:
When I use the --debug command line argument, I see statements like this (full debug output is included further below):
FWIW: I searched on Google as well as on this forum for the debug message and couldn't find any resources that could help me move forward. Or in any direction, really. I don't believe this problem originates from PrinceXML. Rather I believe it's the environment, which is a fresh install of macOS 10.14 Mojave with the most recent OS updates installed.
Any ideas, tips, hints?
Here's the output of the command I'm using, with the --debug argument:
<!DOCTYPE html>
<html>
<head>
<style media="screen,print">
h1, p { font-family: Helvetica, Arial, sans-serif; }
h1 { font-size: 1.6em; font-weight: bold; }
strong { font-weight: bold; }
</style>
</head>
<body>
<h1>Heading</h1>
<p>This is a paragraph with some <strong>strong</strong> text.</p>
</body>
</html>
When I use the --debug command line argument, I see statements like this (full debug output is included further below):
⋮
prince: Converting document...
prince: debug: pack
prince: debug: font request: bold Helvetica, Arial, sans-serif
prince: debug: scan fonts: Helvetica
prince: debug: found font: Helvetica Regular
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Arial
prince: debug: found font: Arial Regular
prince: debug: oops, could not get font traits information
⋮
FWIW: I searched on Google as well as on this forum for the debug message and couldn't find any resources that could help me move forward. Or in any direction, really. I don't believe this problem originates from PrinceXML. Rather I believe it's the environment, which is a fresh install of macOS 10.14 Mojave with the most recent OS updates installed.
Any ideas, tips, hints?
Here's the output of the command I'm using, with the --debug argument:
$ prince --debug --media=print -i html5 tmp.html --output tmp.pdf
prince: debug: init locking for OpenSSL
prince: debug: loading license: /usr/local/lib/prince/license/license.dat
prince: loading document: /usr/local/lib/prince/license/license.dat
prince: debug: loaded resource: /usr/local/lib/prince/license/license.dat
prince: debug: loaded resource: type: no
prince: debug: enumerate font families
prince: debug: font scan: .Al Bayan PUA
prince: debug: font scan: .Al Nile PUA
prince: debug: font scan: .Al Tarikh PUA
prince: debug: font scan: .Apple Color Emoji UI
prince: debug: font scan: .Apple SD Gothic NeoI
prince: debug: font scan: .Aqua Kana
prince: debug: font scan: .Arabic UI Display
prince: debug: font scan: .Arabic UI Text
prince: debug: font scan: .Arial Hebrew Desk Interface
prince: debug: font scan: .Baghdad PUA
prince: debug: font scan: .Beirut PUA
prince: debug: font scan: .Damascus PUA
prince: debug: font scan: .DecoType Naskh PUA
prince: debug: font scan: .Diwan Kufi PUA
prince: debug: font scan: .Farah PUA
prince: debug: font scan: .Geeza Pro Interface
prince: debug: font scan: .Geeza Pro PUA
prince: debug: font scan: .Helvetica Neue DeskInterface
prince: debug: font scan: .Hiragino Kaku Gothic Interface
prince: debug: font scan: .Hiragino Sans GB Interface
prince: debug: font scan: .Keyboard
prince: debug: font scan: .KufiStandardGK PUA
prince: debug: font scan: .LastResort
prince: debug: font scan: .Lucida Grande UI
prince: debug: font scan: .Muna PUA
prince: debug: font scan: .Nadeem PUA
prince: debug: font scan: .Noto Nastaliq Urdu UI
prince: debug: font scan: .PingFang HK
prince: debug: font scan: .PingFang SC
prince: debug: font scan: .PingFang TC
prince: debug: font scan: .Sana PUA
prince: debug: font scan: .Savoye LET CC.
prince: debug: font scan: .SF Compact Display
prince: debug: font scan: .SF Compact Rounded
prince: debug: font scan: .SF Compact Text
prince: debug: font scan: .SF NS Display
prince: debug: font scan: .SF NS Display Condensed
prince: debug: font scan: .SF NS Rounded
prince: debug: font scan: .SF NS Symbols
prince: debug: font scan: .SF NS Text
prince: debug: font scan: .SF NS Text Condensed
prince: debug: font scan: Adelle Sans
prince: debug: font scan: Al Bayan
prince: debug: font scan: Al Nile
prince: debug: font scan: Al Tarikh
prince: debug: font scan: American Typewriter
prince: debug: font scan: Andale Mono
prince: debug: font scan: Apple Braille
prince: debug: font scan: Apple Chancery
prince: debug: font scan: Apple Color Emoji
prince: debug: font scan: Apple SD Gothic Neo
prince: debug: font scan: Apple Symbols
prince: debug: font scan: AppleGothic
prince: debug: font scan: AppleMyungjo
prince: debug: font scan: Arial
prince: debug: font scan: Arial Black
prince: debug: font scan: Arial Hebrew
prince: debug: font scan: Arial Hebrew Scholar
prince: debug: font scan: Arial Narrow
prince: debug: font scan: Arial Rounded MT Bold
prince: debug: font scan: Arial Unicode MS
prince: debug: font scan: Athelas
prince: debug: font scan: Avenir
prince: debug: font scan: Avenir Next
prince: debug: font scan: Avenir Next Condensed
prince: debug: font scan: Ayuthaya
prince: debug: font scan: Baghdad
prince: debug: font scan: Bangla MN
prince: debug: font scan: Bangla Sangam MN
prince: debug: font scan: Baskerville
prince: debug: font scan: Beirut
prince: debug: font scan: Big Caslon
prince: debug: font scan: Bodoni 72
prince: debug: font scan: Bodoni 72 Oldstyle
prince: debug: font scan: Bodoni 72 Smallcaps
prince: debug: font scan: Bodoni Ornaments
prince: debug: font scan: Bradley Hand
prince: debug: font scan: Brush Script MT
prince: debug: font scan: Chalkboard
prince: debug: font scan: Chalkboard SE
prince: debug: font scan: Chalkduster
prince: debug: font scan: Charter
prince: debug: font scan: Cochin
prince: debug: font scan: Comic Sans MS
prince: debug: font scan: Cooper Std
prince: debug: font scan: Copperplate
prince: debug: font scan: Corsiva Hebrew
prince: debug: font scan: Courier
prince: debug: font scan: Courier New
prince: debug: font scan: Damascus
prince: debug: font scan: DecoType Naskh
prince: debug: font scan: Devanagari MT
prince: debug: font scan: Devanagari Sangam MN
prince: debug: font scan: Didot
prince: debug: font scan: DIN Alternate
prince: debug: font scan: DIN Condensed
prince: debug: font scan: Diwan Kufi
prince: debug: font scan: Diwan Thuluth
prince: debug: font scan: Euphemia UCAS
prince: debug: font scan: Falco Black
prince: debug: font scan: Farah
prince: debug: font scan: Farisi
prince: debug: font scan: Futura
prince: debug: font scan: GB18030 Bitmap
prince: debug: font scan: Geeza Pro
prince: debug: font scan: Geneva
prince: debug: font scan: Georgia
prince: debug: font scan: Gill Sans
prince: debug: font scan: Gotham Light
prince: debug: font scan: Gotham Medium
prince: debug: font scan: GothamLight
prince: debug: font scan: Gujarati MT
prince: debug: font scan: Gujarati Sangam MN
prince: debug: font scan: Gurmukhi MN
prince: debug: font scan: Gurmukhi MT
prince: debug: font scan: Gurmukhi Sangam MN
prince: debug: font scan: Heiti SC
prince: debug: font scan: Heiti TC
prince: debug: font scan: Helvetica
prince: debug: font scan: Helvetica Neue
prince: debug: font scan: Herculanum
prince: debug: font scan: Hiragino Kaku Gothic Pro
prince: debug: font scan: Hiragino Kaku Gothic ProN
prince: debug: font scan: Hiragino Kaku Gothic Std
prince: debug: font scan: Hiragino Kaku Gothic StdN
prince: debug: font scan: Hiragino Maru Gothic Pro
prince: debug: font scan: Hiragino Maru Gothic ProN
prince: debug: font scan: Hiragino Mincho Pro
prince: debug: font scan: Hiragino Mincho ProN
prince: debug: font scan: Hiragino Sans
prince: debug: font scan: Hiragino Sans GB
prince: debug: font scan: Hoefler Text
prince: debug: font scan: Impact
prince: debug: font scan: InaiMathi
prince: debug: font scan: Iowan Old Style
prince: debug: font scan: ITF Devanagari
prince: debug: font scan: ITF Devanagari Marathi
prince: debug: font scan: Kailasa
prince: debug: font scan: Kannada MN
prince: debug: font scan: Kannada Sangam MN
prince: debug: font scan: Kefa
prince: debug: font scan: Khmer MN
prince: debug: font scan: Khmer Sangam MN
prince: debug: font scan: Kohinoor Bangla
prince: debug: font scan: Kohinoor Devanagari
prince: debug: font scan: Kohinoor Telugu
prince: debug: font scan: Kokonor
prince: debug: font scan: Krungthep
prince: debug: font scan: KufiStandardGK
prince: debug: font scan: Lao MN
prince: debug: font scan: Lao Sangam MN
prince: debug: font scan: Lucida Grande
prince: debug: font scan: Luminari
prince: debug: font scan: Malayalam MN
prince: debug: font scan: Malayalam Sangam MN
prince: debug: font scan: Marion
prince: debug: font scan: Marker Felt
prince: debug: font scan: Menlo
prince: debug: font scan: Microsoft Sans Serif
prince: debug: font scan: Mishafi
prince: debug: font scan: Mishafi Gold
prince: debug: font scan: Monaco
prince: debug: font scan: Mshtakan
prince: debug: font scan: Muna
prince: debug: font scan: Myanmar MN
prince: debug: font scan: Myanmar Sangam MN
prince: debug: font scan: Nadeem
prince: debug: font scan: Neuzeit
prince: debug: font scan: New Peninim MT
prince: debug: font scan: Noteworthy
prince: debug: font scan: Noto Nastaliq Urdu
prince: debug: font scan: Optima
prince: debug: font scan: Oriya MN
prince: debug: font scan: Oriya Sangam MN
prince: debug: font scan: Palatino
prince: debug: font scan: Papyrus
prince: debug: font scan: Phosphate
prince: debug: font scan: PingFang HK
prince: debug: font scan: PingFang SC
prince: debug: font scan: PingFang TC
prince: debug: font scan: Plantagenet Cherokee
prince: debug: font scan: PT Mono
prince: debug: font scan: PT Sans
prince: debug: font scan: PT Sans Caption
prince: debug: font scan: PT Sans Narrow
prince: debug: font scan: PT Serif
prince: debug: font scan: PT Serif Caption
prince: debug: font scan: Raanana
prince: debug: font scan: Rockwell
prince: debug: font scan: Sana
prince: debug: font scan: Sathu
prince: debug: font scan: Savoye LET
prince: debug: font scan: Seravek
prince: debug: font scan: Shree Devanagari 714
prince: debug: font scan: SignPainter
prince: debug: font scan: Silom
prince: debug: font scan: Sinhala MN
prince: debug: font scan: Sinhala Sangam MN
prince: debug: font scan: Skia
prince: debug: font scan: Snell Roundhand
prince: debug: font scan: Songti SC
prince: debug: font scan: Songti TC
prince: debug: font scan: STIXGeneral
prince: debug: font scan: STIXIntegralsD
prince: debug: font scan: STIXIntegralsSm
prince: debug: font scan: STIXIntegralsUp
prince: debug: font scan: STIXIntegralsUpD
prince: debug: font scan: STIXIntegralsUpSm
prince: debug: font scan: STIXNonUnicode
prince: debug: font scan: STIXSizeFiveSym
prince: debug: font scan: STIXSizeFourSym
prince: debug: font scan: STIXSizeOneSym
prince: debug: font scan: STIXSizeThreeSym
prince: debug: font scan: STIXSizeTwoSym
prince: debug: font scan: STIXVariants
prince: debug: font scan: STSong
prince: debug: font scan: Sukhumvit Set
prince: debug: font scan: Superclarendon
prince: debug: font scan: Symbol
prince: debug: font scan: Tahoma
prince: debug: font scan: Tamil MN
prince: debug: font scan: Tamil Sangam MN
prince: debug: font scan: TC Solid Font
prince: debug: font scan: Telugu MN
prince: debug: font scan: Telugu Sangam MN
prince: debug: font scan: Thonburi
prince: debug: font scan: Times
prince: debug: font scan: Times New Roman
prince: debug: font scan: Trattatello
prince: debug: font scan: Trebuchet MS
prince: debug: font scan: Verdana
prince: debug: font scan: Waseem
prince: debug: font scan: Webdings
prince: debug: font scan: Wingdings
prince: debug: font scan: Wingdings 2
prince: debug: font scan: Wingdings 3
prince: debug: font scan: Zapf Dingbats
prince: debug: font scan: Zapfino
prince: loading style sheet: /usr/local/lib/prince/style/fonts.css
prince: debug: loaded resource: /usr/local/lib/prince/style/fonts.css
prince: debug: loaded resource: type: no
prince: Loading document...
prince: debug: starting prefetch threads
prince: loading HTML5 input: tmp.html
prince: loading document: tmp.html
prince: debug: loaded resource: tmp.html
prince: debug: loaded resource: type: no
prince: debug: loaded document: tmp.html
prince: debug: sniffed doctype: XHTML
prince: Applying style sheets...
prince: loading style sheet: /usr/local/lib/prince/style/xhtml-ns.css
prince: debug: loaded resource: /usr/local/lib/prince/style/xhtml-ns.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/common.css
prince: debug: loaded resource: /usr/local/lib/prince/style/common.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/hyph.css
prince: debug: loaded resource: /usr/local/lib/prince/style/hyph.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/mathml.css
prince: debug: loaded resource: /usr/local/lib/prince/style/mathml.css
prince: debug: loaded resource: type: no
prince: loading style sheet: /usr/local/lib/prince/style/svg.css
prince: debug: loaded resource: /usr/local/lib/prince/style/svg.css
prince: debug: loaded resource: type: no
prince: Preparing document...
prince: debug: stopping prefetch threads
prince: Converting document...
prince: debug: pack
prince: debug: font request: bold Helvetica, Arial, sans-serif
prince: debug: scan fonts: Helvetica
prince: debug: found font: Helvetica Regular
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Arial
prince: debug: found font: Arial Regular
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Symbol
prince: debug: found font: Symbol Regular
prince: debug: scan fonts: Hiragino Kaku Gothic ProN
prince: debug: found font: Hiragino Kaku Gothic ProN W3
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Apple SD Gothic Neo
prince: debug: found font: Apple SD Gothic Neo Regular
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Times New Roman
prince: debug: found font: Times New Roman Regular
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Hiragino Mincho ProN
prince: debug: found font: Hiragino Mincho ProN W3
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: AppleMyungjo
prince: debug: found font: AppleMyungjo Regular
prince: debug: scan fonts: Devanagari MT
prince: debug: found font: Devanagari MT Regular
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Gurmukhi MT
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Gujarati MT
prince: debug: found font: Gujarati MT Regular
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: InaiMathi
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Thonburi
prince: debug: found font: Thonburi Regular
prince: debug: oops, could not get font traits information
prince: debug: oops, could not get font traits information
prince: debug: scan fonts: Arial Unicode MS
prince: debug: found font: Arial Unicode MS Regular
prince: used font: Helvetica, Regular
prince: debug: font request: Helvetica, Arial, sans-serif
prince: debug: writing output: tmp.pdf
prince: Finished: success
Edited by dalvinio