I recreated the metrics files for TimesNewRoman. Now it works.

Thanks.

Von: Luis Bernardo [via Apache FOP] 
[mailto:ml-node+s1065347n4249...@n5.nabble.com]
Gesendet: Montag, 29. Juni 2015 10:18
An: Daniel Strackbein
Betreff: Re: AW: AW: Missing glyph error, but font contains glyph


Do not use metrics files. They are not needed and are not recommended: 
http://xmlgraphics.apache.org/fop/2.0/fonts.html.

As long as you reference the fonts in the FO file the same way you configure 
them in your config file you can name them any way you want. If you get a 
warning about TimesNewRoman even though you don't have that in your config file 
then it is likely you are not referencing the right font in your FO file.

On 6/29/15 9:48 AM, mulos wrote:
I have the font included in the config-file. Here is the part of the fop.xconf:

      <fonts>
        <font metrics-url="../../shared/fop/conf/times.xml" kerning="yes" 
embed-url="../../shared/fop/fonts/times.ttf">
          <font-triplet name="Times" style="normal" weight="normal"/>
        </font>
        <font metrics-url="../../shared/fop/conf/timesbd.xml" kerning="yes" 
embed-url="../../shared/fop/fonts/timesbd.ttf">
          <font-triplet name="Times" style="normal" weight="bold"/>
        </font>
            <font metrics-url="../../shared/fop/conf/timesi.xml" kerning="yes" 
embed-url="../../shared/fop/fonts/timesi.ttf">
          <font-triplet name="Times" style="italic" weight="normal"/>
        </font>
        <font metrics-url="../../shared/fop/conf/timesbi.xml" kerning="yes" 
embed-url="../../shared/fop/fonts/timesbi.ttf">
          <font-triplet name="Times" style="italic" weight="bold"/>
        </font>
      </fonts>

The warning says:

WARNING: Glyph "?" (0x1e7, gcaron) not available in font "TimesNewRoman".

The times font in the config file is TimesNewRoman. Is it ok to name the 
TimesNewRoman font „Times“ or is that the problem?

Thanks,

Daniel

Von: Chris Bowditch [via Apache FOP] [[hidden 
email]</user/SendEmail.jtp?type=node&node=42495&i=0>[hidden 
email]</user/SendEmail.jtp?type=node&node=42494&i=0>]
Gesendet: Freitag, 26. Juni 2015 17:53
An: Daniel Strackbein
Betreff: Re: AW: Missing glyph error, but font contains glyph

Hi Daniel,

The built in Times Font is embedded within the PDF Viewer. You can't
adjust it. All you can do is tell FOP to use a different Font to render
your XSL-FO. This is done via your fop.xconf file. If you believe you've
done that already, then can you post your fop.xconf file here for review?

Thanks,

Chris

On 24/06/2015 08:24, mulos wrote:

>
> Thanks, but where can I find the built-in Times font? In my fop\fonts
> – folder I have:
>
> times.ttf
>
> timesbd.ttf
>
> timesbi.ttf
>
> timesi.ttf
>
> All of them contain this character. Could this be a codepage problem?
>
> Daniel
>
> *Von:*Glenn Adams-2 [via Apache FOP] [[hidden 
> email]</user/SendEmail.jtp?type=node&node=42495&i=1>[hidden email]
> </user/SendEmail.jtp?type=node&node=42467&i=0>]
> *Gesendet:* Dienstag, 23. Juni 2015 18:08
> *An:* Daniel Strackbein
> *Betreff:* Re: Missing glyph error, but font contains glyph
>
> If you are using the built-in Times font, then it does not include a
> glyph for that character.
>
> On Tue, Jun 23, 2015 at 9:09 AM, mulos <[hidden email]
> </user/SendEmail.jtp?type=node&node=42466&i=0>> wrote:
>
>     Hi,
>
>     output format is PDF. Font type is TTF.
>
>     If I embedd another font (cambria), the character is found
>     correctly. But why? Times contains this character. The config file
>     (times.xml) contains it, too.
>
>     Thanks,
>
>     Daniel
>
>     *Von:*Robert Meyer-5 [via Apache FOP] [mailto:[hidden email]
>     </user/SendEmail.jtp?type=node&node=42466&i=1>[hidden email]
>     <http://user/SendEmail.jtp?type=node&node=42465&i=0>]
>     *Gesendet:* Dienstag, 23. Juni 2015 17:00
>     *An:* Daniel Strackbein
>     *Betreff:* RE: Missing glyph error, but font contains glyph
>
>     Hi,
>
>     Could you provide extra details such as the output format (PDF,
>     Postscript, AFP) and the font type you're using (Type1, TTF,
>     OpenType)?
>
>     Thanks,
>
>     Robert
>
>     > Date: Tue, 23 Jun 2015 07:34:36 -0700
>
>
>     > From: [hidden email]
>     <http://user/SendEmail.jtp?type=node&node=42464&i=0>
>     > To: [hidden email]
>     <http://user/SendEmail.jtp?type=node&node=42464&i=1>
>     > Subject: Missing glyph error, but font contains glyph
>     >
>     > Hi, I get the following error:
>     >
>     > Jun 23, 2015 4:28:46 PM org.apache.fop.events.LoggingEventListener
>     > processEvent
>     > WARNING: Glyph "?" (0x1e7, gcaron) not available in font
>     "TimesNewRoman".
>     > java version "1.7.0_17"
>     > Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
>     > Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
>     >
>     > This character exists in the times new roman font. Why does this
>     message
>     > appear?
>     >
>     >
>     >
>     > --
>     > View this message in context:
>     
> http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463.html
>     > Sent from the FOP - Users mailing list archive at Nabble.com.
>     >
>     >
>     ---------------------------------------------------------------------
>     > To unsubscribe, e-mail: [hidden email]
>     <http://user/SendEmail.jtp?type=node&node=42464&i=2>
>     > For additional commands, e-mail: [hidden email]
>     <http://user/SendEmail.jtp?type=node&node=42464&i=3>
>     >
>
>     ------------------------------------------------------------------------
>
>     *If you reply to this email, your message will be added to the
>     discussion below:*
>
>     
> http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42464.html
>
>
>     To unsubscribe from Missing glyph error, but font contains glyph,
>     click here.
>     NAML
>     
> <http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>     ------------------------------------------------------------------------
>
>     View this message in context: AW: Missing glyph error, but font
>     contains glyph
>     
> <http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42465.html>
>
>
>     Sent from the FOP - Users mailing list archive
>     <http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html> at
>     Nabble.com.
>
> ------------------------------------------------------------------------
>
> *If you reply to this email, your message will be added to the
> discussion below:*
>
> http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42466.html
>
>
> To unsubscribe from Missing glyph error, but font contains glyph,
> click here.
> NAML
> <http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> ------------------------------------------------------------------------
> View this message in context: AW: Missing glyph error, but font
> contains glyph
> <http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42467.html>
> Sent from the FOP - Users mailing list archive
> <http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html> at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden 
email]</user/SendEmail.jtp?type=node&node=42486&i=0>
For additional commands, e-mail: [hidden 
email]</user/SendEmail.jtp?type=node&node=42486&i=1>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42486.html
To unsubscribe from Missing glyph error, but font contains glyph, click here.
NAML<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

________________________________
View this message in context: AW: AW: Missing glyph error, but font contains 
glyph<http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42494.html>
Sent from the FOP - Users mailing list 
archive<http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html> at 
Nabble.com.


________________________________
If you reply to this email, your message will be added to the discussion below:
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42495.html
To unsubscribe from Missing glyph error, but font contains glyph, click 
here<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=42463&code=ZGFuaWVsLnN0cmFja2JlaW5AbWJpLmRlfDQyNDYzfDUzMTE4ODI3Mg==>.
NAML<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Missing-glyph-error-but-font-contains-glyph-tp42463p42496.html
Sent from the FOP - Users mailing list archive at Nabble.com.

Reply via email to