You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Pascal Sancho <pa...@takoma.fr> on 2011/04/20 14:18:29 UTC

Re: ttf fonts for SVG in debian

Hi,
SVG uses sytem font (because rendered via AWT), while FOP uses
explicitely specified fonts (in conf file) for PDF rendering.

To ensure that text in SVG uses a specific font, this font must be
declared both in system font system and in FOP conf file (with the same
name, of course).

Le 20/04/2011 13:19, Bogusław Fries a écrit :
> Hi all,
> I need some help for svg fonts configuration in debian.
>                         <fo:block>
>                             <fo:instream-foreign-object>
>                                 <svg:svg width="4.0mm" height="28mm">
>                                     <svg:text x="3" y="0"
> font-family="Arial” font-size="6px" writing-mode="tb"
> glyph-orientation-vertical="90deg">
>                                         l:text>Adres doręczenia</xsl:text>
>                                     </svg:text>
>                                 </svg:svg>
>                             </fo:instream-foreign-object>
>                         </fo:block>
> In the configuration file there is:
>                 <font metrics-file="fonts95-v3/arial.xml" kerning="yes"
> embed-url="fonts95-v3/arial.ttf">
>                     <font-triplet name="Arial" style="normal"
> weight="normal"/>
>                 </font>
> There is the polish national character “ę”. On the PDF is Adres
> dor#czenia printed. Acrobat reader shows the Helvetica is embedded
> instead of Arial.
> I am using fop 1.0, batik-all-1.7, xmlgraphics-commons-1.4
> I found only one solution but it is not acceptable for our system
> administrator: I put Arial.ttf file in /usr/share/fonts and run  fc-chache  
> When I am using fop 0.95 all is correct without any modification in the
> operating system.
> Thanks & Regards
> *Bogusław Fries*
> Senior programmer
> DPD Poland

-- 
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: ttf fonts for SVG in debian

Posted by Tom Browder <to...@gmail.com>.
You also might want to try the GNU FreeFont fonts (FreeSerif,
FreeSans, and FreMono) ttf fonts which have a large number of glyphs
compared to most ttf fonts.  I have been very happy with them for SVG
equations.  See:

  http://www.gnu.org/software/freefont/

Best regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: ttf fonts for SVG in debian

Posted by mehdi houshmand <me...@gmail.com>.
Hi

Vincent gave a fairly concise answer here, which may also help in
finding out which fonts Java has registered:

http://markmail.org/search/?q=Missing+Font+SVG+list%3Aorg.apache.xmlgraphics.fop-users#query:Missing%20Font%20SVG%20list%3Aorg.apache.xmlgraphics.fop-users+page:1+mid:obiwsaqa32ocd7qc+state:results

Also, you don't need the metrics file, they're deprecated, and
depending on which Linux flavour you've chosen, you can install Arial
(mscorefonts in Ubuntu) from the standard repositories.

Hope that helps

Mehdi


On 20 April 2011 13:18, Pascal Sancho <pa...@takoma.fr> wrote:
> Hi,
> SVG uses sytem font (because rendered via AWT), while FOP uses
> explicitely specified fonts (in conf file) for PDF rendering.
>
> To ensure that text in SVG uses a specific font, this font must be
> declared both in system font system and in FOP conf file (with the same
> name, of course).
>
> Le 20/04/2011 13:19, Bogusław Fries a écrit :
>> Hi all,
>> I need some help for svg fonts configuration in debian.
>>                         <fo:block>
>>                             <fo:instream-foreign-object>
>>                                 <svg:svg width="4.0mm" height="28mm">
>>                                     <svg:text x="3" y="0"
>> font-family="Arial” font-size="6px" writing-mode="tb"
>> glyph-orientation-vertical="90deg">
>>                                         l:text>Adres doręczenia</xsl:text>
>>                                     </svg:text>
>>                                 </svg:svg>
>>                             </fo:instream-foreign-object>
>>                         </fo:block>
>> In the configuration file there is:
>>                 <font metrics-file="fonts95-v3/arial.xml" kerning="yes"
>> embed-url="fonts95-v3/arial.ttf">
>>                     <font-triplet name="Arial" style="normal"
>> weight="normal"/>
>>                 </font>
>> There is the polish national character “ę”. On the PDF is Adres
>> dor#czenia printed. Acrobat reader shows the Helvetica is embedded
>> instead of Arial.
>> I am using fop 1.0, batik-all-1.7, xmlgraphics-commons-1.4
>> I found only one solution but it is not acceptable for our system
>> administrator: I put Arial.ttf file in /usr/share/fonts and run  fc-chache
>> When I am using fop 0.95 all is correct without any modification in the
>> operating system.
>> Thanks & Regards
>> *Bogusław Fries*
>> Senior programmer
>> DPD Poland
>
> --
> Pascal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org