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 Christian Pestel <ch...@orange.fr> on 2013/02/18 00:41:07 UTC

Re: [?? Probable Spam] Re: TrueType fonts with Fop Postscript

Hi Luis,

I use Fop-Trunk; no error during conversion fo2ps.
The ps file content seems correct, but Verdana font is not embeded in PS file.
I would like a PS file with font embeded.
Is there a special fop configuration to embed a TrueType font like CID-keys font in pdf ?
Thank for your reply.

GS
[1 0 0 1 70.85 70.85] CT
GS
BT
/Verdana 36 F
1 0 0 -1 0 29.154 Tm
(\003\004\005\006\001\005\006\001\007\b\t\n\013\f\013\001\r\016\f\003) t
1 0 0 -1 0 67.374 Tm
(\017\020\021\022) t
ET
GR
GR
showpage

 

Christian Pestel

christian.pestel@orange.fr


From: Luis Bernardo 
Sent: Saturday, February 16, 2013 12:10 AM
To: fop-users@xmlgraphics.apache.org 
Subject: [?? Probable Spam] Re: TrueType fonts with Fop Postscript


Are you using FOP-1.0? Your example should work with FOP-1.1 and trunk, but it does not work with FOP-1.0. If the issue is not the version, do you get any error or warning when you generate your PostScript.

On 2/15/13 3:39 PM, Christian Pestel wrote:

  Hi,

  Is Fop support TrueType fonts for Postscript renderer ?
  My PS file is not well rendered with Compart viewer.
  Is TrueType font embeded into PS file ?
  Is this above configuration correcty ?

  <fop version="2.0">
  <renderers>
  <renderer mime="application/postscript">

    <auto-rotate-landscape>false</auto-rotate-landscape>
    <language-level>3</language-level>
    <optimize-resources>false</optimize-resources>
    <safe-set-page-device>false</safe-set-page-device>
    <dsc-compliant>true</dsc-compliant>
    <rendering>quality</rendering>

  <fonts>
  <!-- Verdana -->
      <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdana.ttf">
          <font-triplet name="Verdana" style="normal" weight="normal"/>
      </font>
      <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdanab.ttf">
          <font-triplet name="Verdana" style="normal" weight="bold"/>
      </font>
      <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdanaz.ttf">
          <font-triplet name="Verdana" style="italic" weight="bold"/>
      </font>
      <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdanai.ttf">
          <font-triplet name="Verdana" style="italic" weight="normal"/>
      </font>
  </fonts>

  </renderer>
  </renderers>
  </fop>

  Christian Pestel
  christian.pestel@orange.fr

   

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

Re: TrueType fonts with Fop Postscript

Posted by Luis Bernardo <lm...@gmail.com>.
If it only happens with that particular nightly build then you need to 
make it available for us to download and test since only the nightly 
builds for the last 30 days are kept. Either that or you will need to 
use a more recent build.

On 2/18/13 9:47 AM, Christian Pestel wrote:
> Hi Luis,
>
> I used a Fop trunk release May 07, 2012 and there is this pb with this 
> release.
>
> With Fop 1.1 or Fop Trunk December 04, 2012, it’s work fine with 
> embedding-mode=”full” or embedding-mode=“subset”.
>
> Thank for your help.
>
> Christian Pestel
>
> christian.pestel@orange.fr <ma...@bdoc.com>
>
> *From:* Luis Bernardo <ma...@gmail.com>
> *Sent:* Monday, February 18, 2013 1:56 AM
> *To:* fop-users@xmlgraphics.apache.org 
> <ma...@xmlgraphics.apache.org>
> *Subject:* Re: TrueType fonts with Fop Postscript
>
> I tried your example and I had no trouble. Maybe the issue is the URI. 
> Try to specify it differently. You can also try embedding-mode="full".
>
> On 2/17/13 11:41 PM, Christian Pestel wrote:
>> Hi Luis,
>> I use Fop-Trunk; no error during conversion fo2ps.
>> The ps file content seems correct, but Verdana font is not embeded in 
>> PS file.
>> I would like a PS file with font embeded.
>> Is there a special fop configuration to embed a TrueType font like 
>> CID-keys font in pdf ?
>> Thank for your reply.
>> GS
>> [1 0 0 1 70.85 70.85] CT
>> GS
>> BT
>> /Verdana 36 F
>> 1 0 0 -1 0 29.154 Tm
>> (\003\004\005\006\001\005\006\001\007\b\t\n\013\f\013\001\r\016\f\003) t
>> 1 0 0 -1 0 67.374 Tm
>> (\017\020\021\022) t
>> ET
>> GR
>> GR
>> showpage
>>
>> **
>>
>> Christian Pestel
>>
>> christian.pestel@orange.fr <ma...@bdoc.com>
>>
>> *From:* Luis Bernardo <ma...@gmail.com>
>> *Sent:* Saturday, February 16, 2013 12:10 AM
>> *To:* fop-users@xmlgraphics.apache.org 
>> <ma...@xmlgraphics.apache.org>
>> *Subject:* [?? Probable Spam] Re: TrueType fonts with Fop Postscript
>>
>> Are you using FOP-1.0? Your example should work with FOP-1.1 and 
>> trunk, but it does not work with FOP-1.0. If the issue is not the 
>> version, do you get any error or warning when you generate your 
>> PostScript.
>>
>> On 2/15/13 3:39 PM, Christian Pestel wrote:
>>> Hi,
>>> Is Fop support TrueType fonts for Postscript renderer ?
>>> My PS file is not well rendered with Compart viewer.
>>> Is TrueType font embeded into PS file ?
>>> Is this above configuration correcty ?
>>> <fop version="2.0">
>>> <renderers>
>>> <renderer mime="application/postscript">
>>> <auto-rotate-landscape>false</auto-rotate-landscape>
>>> <language-level>3</language-level>
>>> <optimize-resources>false</optimize-resources>
>>> <safe-set-page-device>false</safe-set-page-device>
>>> <dsc-compliant>true</dsc-compliant>
>>> <rendering>quality</rendering>
>>> <fonts>
>>> <!-- Verdana -->
>>>     <font kerning="yes" 
>>> embed-url="file:///C:/Windows/Fonts/Verdana.ttf">
>>>         <font-triplet name="Verdana" style="normal" weight="normal"/>
>>>     </font>
>>>     <font kerning="yes" 
>>> embed-url="file:///C:/Windows/Fonts/Verdanab.ttf">
>>>         <font-triplet name="Verdana" style="normal" weight="bold"/>
>>>     </font>
>>>     <font kerning="yes" 
>>> embed-url="file:///C:/Windows/Fonts/Verdanaz.ttf">
>>>         <font-triplet name="Verdana" style="italic" weight="bold"/>
>>>     </font>
>>>     <font kerning="yes" 
>>> embed-url="file:///C:/Windows/Fonts/Verdanai.ttf">
>>>         <font-triplet name="Verdana" style="italic" weight="normal"/>
>>>     </font>
>>> </fonts>
>>> </renderer>
>>> </renderers>
>>> </fop>
>>> Christian Pestel
>>> christian.pestel@orange.fr <ma...@bdoc.com>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail:fop-users-help@xmlgraphics.apache.org
>>
>


Re: TrueType fonts with Fop Postscript

Posted by Christian Pestel <ch...@orange.fr>.
Hi Luis,

I used a Fop trunk release May 07, 2012 and there is this pb with this release.

With Fop 1.1 or Fop Trunk December 04, 2012, it’s work fine with embedding-mode=”full” or embedding-mode=“subset”.

Thank for your help.

 

Christian Pestel

christian.pestel@orange.fr


From: Luis Bernardo 
Sent: Monday, February 18, 2013 1:56 AM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: TrueType fonts with Fop Postscript


I tried your example and I had no trouble. Maybe the issue is the URI. Try to specify it differently. You can also try embedding-mode="full".

On 2/17/13 11:41 PM, Christian Pestel wrote:

  Hi Luis,

  I use Fop-Trunk; no error during conversion fo2ps.
  The ps file content seems correct, but Verdana font is not embeded in PS file.
  I would like a PS file with font embeded.
  Is there a special fop configuration to embed a TrueType font like CID-keys font in pdf ?
  Thank for your reply.

  GS
  [1 0 0 1 70.85 70.85] CT
  GS
  BT
  /Verdana 36 F
  1 0 0 -1 0 29.154 Tm
  (\003\004\005\006\001\005\006\001\007\b\t\n\013\f\013\001\r\016\f\003) t
  1 0 0 -1 0 67.374 Tm
  (\017\020\021\022) t
  ET
  GR
  GR
  showpage

   

  Christian Pestel

  christian.pestel@orange.fr


  From: Luis Bernardo 
  Sent: Saturday, February 16, 2013 12:10 AM
  To: fop-users@xmlgraphics.apache.org 
  Subject: [?? Probable Spam] Re: TrueType fonts with Fop Postscript


  Are you using FOP-1.0? Your example should work with FOP-1.1 and trunk, but it does not work with FOP-1.0. If the issue is not the version, do you get any error or warning when you generate your PostScript.

  On 2/15/13 3:39 PM, Christian Pestel wrote:

    Hi,

    Is Fop support TrueType fonts for Postscript renderer ?
    My PS file is not well rendered with Compart viewer.
    Is TrueType font embeded into PS file ?
    Is this above configuration correcty ?

    <fop version="2.0">
    <renderers>
    <renderer mime="application/postscript">

      <auto-rotate-landscape>false</auto-rotate-landscape>
      <language-level>3</language-level>
      <optimize-resources>false</optimize-resources>
      <safe-set-page-device>false</safe-set-page-device>
      <dsc-compliant>true</dsc-compliant>
      <rendering>quality</rendering>

    <fonts>
    <!-- Verdana -->
        <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdana.ttf">
            <font-triplet name="Verdana" style="normal" weight="normal"/>
        </font>
        <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdanab.ttf">
            <font-triplet name="Verdana" style="normal" weight="bold"/>
        </font>
        <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdanaz.ttf">
            <font-triplet name="Verdana" style="italic" weight="bold"/>
        </font>
        <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdanai.ttf">
            <font-triplet name="Verdana" style="italic" weight="normal"/>
        </font>
    </fonts>

    </renderer>
    </renderers>
    </fop>

    Christian Pestel
    christian.pestel@orange.fr

     

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



Re: TrueType fonts with Fop Postscript

Posted by Luis Bernardo <lm...@gmail.com>.
I tried your example and I had no trouble. Maybe the issue is the URI. 
Try to specify it differently. You can also try embedding-mode="full".

On 2/17/13 11:41 PM, Christian Pestel wrote:
> Hi Luis,
> I use Fop-Trunk; no error during conversion fo2ps.
> The ps file content seems correct, but Verdana font is not embeded in 
> PS file.
> I would like a PS file with font embeded.
> Is there a special fop configuration to embed a TrueType font like 
> CID-keys font in pdf ?
> Thank for your reply.
> GS
> [1 0 0 1 70.85 70.85] CT
> GS
> BT
> /Verdana 36 F
> 1 0 0 -1 0 29.154 Tm
> (\003\004\005\006\001\005\006\001\007\b\t\n\013\f\013\001\r\016\f\003) t
> 1 0 0 -1 0 67.374 Tm
> (\017\020\021\022) t
> ET
> GR
> GR
> showpage
>
> **
>
> Christian Pestel
>
> christian.pestel@orange.fr <ma...@bdoc.com>
>
> *From:* Luis Bernardo <ma...@gmail.com>
> *Sent:* Saturday, February 16, 2013 12:10 AM
> *To:* fop-users@xmlgraphics.apache.org 
> <ma...@xmlgraphics.apache.org>
> *Subject:* [?? Probable Spam] Re: TrueType fonts with Fop Postscript
>
> Are you using FOP-1.0? Your example should work with FOP-1.1 and 
> trunk, but it does not work with FOP-1.0. If the issue is not the 
> version, do you get any error or warning when you generate your 
> PostScript.
>
> On 2/15/13 3:39 PM, Christian Pestel wrote:
>> Hi,
>> Is Fop support TrueType fonts for Postscript renderer ?
>> My PS file is not well rendered with Compart viewer.
>> Is TrueType font embeded into PS file ?
>> Is this above configuration correcty ?
>> <fop version="2.0">
>> <renderers>
>> <renderer mime="application/postscript">
>> <auto-rotate-landscape>false</auto-rotate-landscape>
>>   <language-level>3</language-level>
>> <optimize-resources>false</optimize-resources>
>> <safe-set-page-device>false</safe-set-page-device>
>>   <dsc-compliant>true</dsc-compliant>
>>   <rendering>quality</rendering>
>> <fonts>
>> <!-- Verdana -->
>>     <font kerning="yes" embed-url="file:///C:/Windows/Fonts/Verdana.ttf">
>>         <font-triplet name="Verdana" style="normal" weight="normal"/>
>>     </font>
>>     <font kerning="yes" 
>> embed-url="file:///C:/Windows/Fonts/Verdanab.ttf">
>>         <font-triplet name="Verdana" style="normal" weight="bold"/>
>>     </font>
>>     <font kerning="yes" 
>> embed-url="file:///C:/Windows/Fonts/Verdanaz.ttf">
>>         <font-triplet name="Verdana" style="italic" weight="bold"/>
>>     </font>
>>     <font kerning="yes" 
>> embed-url="file:///C:/Windows/Fonts/Verdanai.ttf">
>>         <font-triplet name="Verdana" style="italic" weight="normal"/>
>>     </font>
>> </fonts>
>> </renderer>
>> </renderers>
>> </fop>
>> Christian Pestel
>> christian.pestel@orange.fr <ma...@bdoc.com>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail:fop-users-help@xmlgraphics.apache.org
>