[17 new] Expand: missing glyphs/ligatures during conversion to .afm font for LaTeX

Bug #603574 reported by Dimitri John Ledkov on 2010-07-09
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Font Family
Medium
Unassigned

Bug Description

When trying to convert ttf font for usage with Latex i get this:

tdlk@surgut:/tmp/test3$ ttf2afm -e T1-WGL4.enc -o recubuntubeta.afm UbuntuRegular.ttf

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `compwordmark' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `perthousandzero' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `ff' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `ffi' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `ffl' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `visualspace' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `Odblacute' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `Tcedilla' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `Udblacute' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `Zdot' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `Idot' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `dmacron' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `odblacute' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `tcedilla' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `udblacute' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `zdot' not found

Warning: ttf2afm (file UbuntuRegular.ttf): glyph `Germandbls' not found

Doe the font not have glyphs like ff, ffi or am I converting it wrong?

(See also bug 677150, packaging the font for TeX/LaTeX.)

Ivanka Majic (ivanka) on 2010-07-16
visibility: private → public

Dmitrijs: lets keep this bug report for the missing glyphs. Could you please file another bug report about providing a .deb package with .afm versions during the package build sequence.

Changed in ubuntufontbetatesting:
status: New → Confirmed
summary: - LaTeX glyphs still missing....
+ Expand: missing glyphs/ligatures during conversion to .afm font for
+ LaTeX
Changed in ubuntufontbetatesting:
importance: Undecided → Medium

Hello,

You should just use the glyph names as they are in the font and not override them with the WGL4 encoding file, this should fix the problem.

regards,

Vincent Connare
Dalton Maag Ltd.

Benjamin Slade (emacsomancer) wrote :
Download full text (3.9 KiB)

I get the following Warnings when trying to convert the Ubuntu font ttf to be used with LaTeX. I get warnings whether or not I use the WGL4 encoding or not (but they are *different* warnings):

1) With WGL4 encoding override:

~/Documents/LaTeX_tests/ubuntu_font_conv$ ttf2tfm UbuntuRegular.ttf -q -T T1-WGL4.enc -v ecubuntu.vpl recubuntu.tfm >> ttfonts.map
ttf2tfm: WARNING: Cannot find character `compwordmark'
         specified in input encoding.
ttf2tfm: WARNING: Cannot find character `perthousandzero'
         specified in input encoding.
ttf2tfm: WARNING: Cannot find character `dotlessj'
         specified in input encoding.
ttf2tfm: WARNING: Cannot find character `ff'
         specified in input encoding.
ttf2tfm: WARNING: Cannot find character `ffi'
         specified in input encoding.
ttf2tfm: WARNING: Cannot find character `ffl'
         specified in input encoding.
ttf2tfm: WARNING: Cannot find character `visualspace'
         specified in input encoding.
ttf2tfm: WARNING: Character `hyphen' encoded twice in input encoding
         (positions 2d and 7f; the latter is ignored).
ttf2tfm: WARNING: Cannot map character `compwordmark'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `perthousandzero'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `dotlessj'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `ff'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `ffi'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `ffl'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `visualspace'
         specified in output encoding.

2) Without WGL4 encoding override:

~/Documents/LaTeX_tests/ubuntu_font_conv$ ttf2tfm UbuntuRegular.ttf -q -v ecubuntu.vpl recubuntu.tfm >> ttfonts.map
ttf2tfm: WARNING: Cannot map character `Gamma'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Delta'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Theta'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Lambda'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Xi'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Pi'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Sigma'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Upsilon'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Phi'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Psi'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `Omega'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `arrowup'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `arrowdown'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `dotlessj'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map character `caron'
         specified in output encoding.
ttf2tfm: WARNING: Cannot map...

Read more...

If you want, I can provide you with the AFM file for the Ubuntu Regular and you can make a .enc from that.

I'll be interested in how to automate AFM generation. Since I want it
to become part of the package.

On 30 September 2010 14:28, Vincent Connare <email address hidden> wrote:
> If you want, I can provide you with the AFM file for the Ubuntu Regular
> and you can make a .enc from that.
>
> --
> Expand: missing glyphs/ligatures during conversion to .afm font for LaTeX
> https://bugs.launchpad.net/bugs/603574
> You received this bug notification because you are a direct subscriber
> of the bug.
>

I found (via planet.u.c) Vincent-Xavier's post on LaTeX and the UFF:

  http://blog.thetys-retz.net/post/2010/11/01/Importing-Ubuntu-Font-Family-in-LaTeX

Vincent: we'd like to be doing "the right thing" out of the box, do you have any preferences on what that should be to provide UFF support for those using LaTeX?

I don't have any preference. I think since ligatures are missing (or not "true" ligature in the sense that a ligature should be a different glyph) from the Ubuntu Font Family itself, you're going to get these warnings.
I'm going to have a look to texlive-fonts-extra package to see what they provides.

Since the font family misses a "fixed teletype" font, I think it's a bit prematurate to create a special package, or to integrate it in texlive-fonts-extra.

I don't have any preference. I think since ligatures are missing (or not "true" ligature in the sense that a ligature should be a different glyph) from the Ubuntu Font Family itself, you're going to get these warnings.
I'm going to have a look to texlive-fonts-extra package to see what they provides.

Since the font family misses a "fixed teletype" font, I think it's a bit prematurate to create a special package, or to integrate it in texlive-fonts-extra.

Paul Sladen (sladen) wrote :

See also bug #677150 which has been filed specifically about generating the AFM files at package build time.

summary: - Expand: missing glyphs/ligatures during conversion to .afm font for
- LaTeX
+ [17 new] Expand: missing glyphs/ligatures during conversion to .afm font
+ for LaTeX
Changed in ubuntu-font-family:
status: Confirmed → Triaged
description: updated
tags: added: uff-dm-new
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers