[nc] Generate TeX files of the Ubuntu Font Family during build time

Bug #677150 reported by Sense Egbert Hofstede
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Font Family
New
Medium
Unassigned
fonts-ubuntu (Ubuntu)
New
Medium
Unassigned

Bug Description

At the moment it is not possible to use the Ubuntu Font Family in LaTeX without importing it manually. It would be great if this font would be made available in LaTeX by default, so you can choose to use a modern font without too much of a hassle.

Vincent-Xavier Jumel posted an article on his blog with some instructions for converting the font for use with TeX at <http://blog.thetys-retz.net/post/2010/11/02/Importing-Ubuntu-Font-Family-in-LaTeX/>.

I'm requesting to generate these files at build time. We could then make LaTeX recommend the resulting package, so every user on Ubuntu who installs LaTeX will be able to use the font straight away.

Related: bug #603574 (errors showing up during AFM build)

Revision history for this message
Sense Egbert Hofstede (sense) wrote :
Paul Sladen (sladen)
description: updated
Revision history for this message
Paul Sladen (sladen) wrote :

Magic lines:

  autoinst --encoding=T1,OT1 --verbose Ubuntu-BI.ttf Ubuntu-B.ttf Ubuntu-I.ttf Ubuntu-R.ttf
  mkdir -p ~/.texlive2009/texmf-var/tex/latex/Ubuntu/Ubuntu/
  mv *.fd *.sty ~/.texlive2009/texmf-var/tex/latex/Ubuntu/Ubuntu/
  texhash ~/.texlive2009/texmf-var/

  \usepackage{Ubuntu}

Couple of things that need clarifying;

  (a) if this report is for .afm files, why are only *.fd and *.sty installed
  (b) what's the preferred system-wide target directory
  (c) in bug #603574 Vincent notes that DM could supply the AFMs, is this a better solution?

Changed in ubuntu-font-family-sources (Ubuntu):
importance: Undecided → Wishlist
milestone: none → ubuntu-11.04-beta
status: New → Incomplete
Revision history for this message
Paul Sladen (sladen) wrote :

Nicolas: that's your preferred solution for TeX/AFM build from the Debian font team angle?

Revision history for this message
Sense Egbert Hofstede (sense) wrote : Re: Generate TeX files of the Ubuntu Font Family during build time

a) I referred to AFM files because I tried to use terminology I didn't fully grasp in order to make this bug report clearer. I removed references to it from the description, because I may have been using the wrong words. I'm not that familiar with LaTeX, I just play with it incidentally.

For the other questions I cannot help you.

I would like to say that I get error messages when trying to run the autoinst command on the TTF files downloaded from <font.ubuntu.com>: for each file I get this:
ERROR: I've parsed both 'Ubuntu-BI.ttf'
                    and 'Ubuntu-I.ttf' as

         Family
         Width regular
         Weight regular
         Shape roman
         Size 0-0

No file is generated as a result.

summary: - Build AFM versions of the Ubuntu Font Family during build time, for use
- with LaTeX
+ Generate TeX files of the Ubuntu Font Family during build time
description: updated
Revision history for this message
Vincent-Xavier JUMEL (vincentxavier) wrote :

Paul, be careful. Vanilla Ubuntu LaTeX installation uses TEXMFVAR = $HOME/.texmf-var dans TEXMFCONFIG = $HOME/.texmf-config

autoinst automagically puts files under those two directories, and they are used.

Prefererd system-wide directory is <file:///usr/share/texmf>.

I'm also thinking that if Vincent provides us with the afm files, it will be better than to generate them from the ttf's file.

Changed in ubuntu-font-family-sources (Ubuntu):
milestone: ubuntu-11.04-beta-1 → ubuntu-11.04
Changed in ubuntu-font-family-sources (Ubuntu Oneiric):
milestone: ubuntu-11.04 → none
importance: Wishlist → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-font-family-sources (Ubuntu Oneiric) because there has been no activity for 60 days.]

Changed in ubuntu-font-family-sources (Ubuntu Oneiric):
status: Incomplete → Expired
Changed in ubuntu-font-family-sources (Ubuntu Oneiric):
status: Expired → Incomplete
Revision history for this message
Paul Sladen (sladen) wrote :

Vincent-Xavier: do you know what needs doing?

If you can document the instructions for generating the necessary files we can do it.

I did raise it with the LinuxLibertine guys in Berlin after Berlin, and their suggestion was that the problem has mostly been superseded by the availability and use of XeTeX which has native OpenType/TrueType.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-font-family-sources (Ubuntu Oneiric) because there has been no activity for 60 days.]

Changed in ubuntu-font-family-sources (Ubuntu Oneiric):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-font-family-sources (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-font-family-sources (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Setting back to new from expired.

AFAIK, XeTeX can't be used as a builder when generating documentation with Sphinx. I'd love to be able to use the Ubuntu font in latexpdf Sphinx docs.

Changed in ubuntu-font-family-sources (Ubuntu):
status: Expired → New
no longer affects: ubuntu-font-family-sources (Ubuntu Oneiric)
summary: - Generate TeX files of the Ubuntu Font Family during build time
+ [nc] Generate TeX files of the Ubuntu Font Family during build time
Changed in ubuntu-font-family:
importance: Undecided → Medium
affects: ubuntu-font-family-sources (Ubuntu) → fonts-ubuntu (Ubuntu)
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.