swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] PDF2SWF 0.9.2 How to add TTF font


From: Yonglin Li
Subject: Re: [Swftools-common] PDF2SWF 0.9.2 How to add TTF font
Date: Sun, 30 Dec 2012 15:05:18 +0000

My command to convert is as follows.

/usr/local/bin/pdf2swf -vv -F /usr/local/share/swftools/fonts -F 
/usr/local/share/swftools/fonts/bold -F /usr/local/share/swftools/fonts/italic 
/tmp/Verdana.pdf /tmp/result.swf > /tmp/info.txt

The debug info is dumped into a file. And something strange is that it said

VERBOSE Adding font "/usr/local/share/swftools/fonts/bold/Verdana,Bold.ttf".
VERBOSE Adding font 
"/usr/local/share/swftools/fonts/italic/Verdana,BoldItalic.ttf".
DEBUG   Adding font /usr/local/share/swftools/fonts/bold/Verdana,Bold.ttf to 
fontconfig
DEBUG   Adding font 
/usr/local/share/swftools/fonts/italic/Verdana,BoldItalic.ttf to fontconfig

VERBOSE looking for font Verdana,Bold
DEBUG   FontConfig: Looking for font Verdana,Bold (family=Verdana style=Bold)
VERBOSE Font Verdana,Bold maps to /usr/local/share/swftools/fonts/Verdana.ttf
VERBOSE looking for font Verdana,BoldItalic
DEBUG   FontConfig: Looking for font Verdana,BoldItalic (family=Verdana,Bold 
style=Italic)
VERBOSE Font Verdana,BoldItalic not found
DEBUG   Font Verdana,BoldItalic-27-0 has space char 0 (unicode=32)
DEBUG   Font Verdana,BoldItalic-27-0
DEBUG   |   Name: Verdana,BoldItalic-27-0


What I cannot understand is that pdf2swf cannot find the font but it shows it 
added. So can you gurus tell me what option I missed to configure that. Or 
where shall I put the fonts and how to configure the font information for 
pdf2swf.

Why this happened? "Font Verdana,Bold maps to 
/usr/local/share/swftools/fonts/Verdana.ttf"?

Thanks!

Yonglin





-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Matthias Kramm
Sent: Saturday, December 29, 2012 10:56 PM
To: address@hidden
Subject: Re: [Swftools-common] PDF2SWF 0.9.2 How to add TTF font

On Sat, Dec 29, 2012 at 04:16:14PM +0000, Yonglin Li <address@hidden> wrote:
> I upgraded my pdf2swf to the latest version of 0.9.2. However, my previews 
> shell scripts are not working right any more. My issues are related to the 
> fonts in the pdf file. After conversion, the fonts in swf file changed.
> 
> I put TTF fonts from windows to the font folder and renamed them 
> according to the error messages in previous pdf2swf application. The 
> fonts worked perfectly in previous versions. After upgrading, I did 
> the same thing, with the same file and same command with -F option, 
> but the fonts lost in the generated swf file.

Anything intersting in the log messages if you run pdf2swf with the "-vv" 
option?

Matthias

---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an 
existing subscription, please kindly point your favourite web browser 
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]