~ubuntu-branches/ubuntu/raring/lmodern/raring

« back to all changes in this revision

Viewing changes to debian/lmodern.README.Debian

  • Committer: Bazaar Package Importer
  • Author(s): Florent Rougon
  • Date: 2004-04-23 11:53:14 UTC
  • Revision ID: james.westby@ubuntu.com-20040423115314-bdgc7wqzoq3r3i77
Tags: 0.92-1
New upstream release. The changes in this release that I am aware of 
are kerning corrections, as inferred from
http://groups.google.com/groups?th=380066b6513c2537, which boils down
to:

I've just uploaded to dante:/incoming/lm.zip 
it contains ver. 0.92 of LM fonts (corrected and added kerning)  

and a fix to AFM files (they used to contain an invalid keyword,
"Generated", that is now properly embedded in a comment;
closes: #243572).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This package contains a set of PostScript Type 1 fonts called "Latin
 
2
Modern", or "lm fonts". They are based on the PostScript Type 1 version
 
3
of the Computer Modern fonts and contain many additional characters.
 
4
 
 
5
This package makes the Latin Modern fonts available to:
 
6
 
 
7
  - the TeX typesetting system (TeX, LaTeX, pdfTeX, pdfLaTeX, xdvi,
 
8
    dvips, etc.);
 
9
 
 
10
  - defoma (this is a generic framework available in Debian whose
 
11
    purpose is to help the packages that use fonts find the fonts
 
12
    installed by the packages that provide fonts. defoma-registered
 
13
    fonts are also classified by family, weight, etc. so that defoma can
 
14
    perform font substitution whenever it is necessary); Fontconfig and
 
15
    Ghostscript are two noteworthy applications that take advantage of
 
16
    defoma-registered fonts in Debian;
 
17
 
 
18
  - the X Window System directly[1], for use by any X application.
 
19
    However, you should be aware that XFree86's native rendering of
 
20
    PostScript Type 1 fonts is not very satisfactory at the moment. The
 
21
    results are much more pleasant with a font rendering engine that can
 
22
    perform anti-aliasing (such as FreeType).
 
23
 
 
24
 
 
25
How to use the Latin Modern fonts with defoma-aware applications?
 
26
-----------------------------------------------------------------
 
27
 
 
28
You have nothing particular to do. This package already did the job.
 
29
 
 
30
 
 
31
How to use the Latin Modern fonts with X11?
 
32
-------------------------------------------
 
33
 
 
34
Once this package is properly installed on your system, the fonts are
 
35
available to X. However, if your X session was started before the
 
36
package was installed or upgraded, this session doesn't know about the
 
37
just-installed fonts. In order for it to see the fonts, you can either
 
38
run "xset fp rehash" as the user who started this X session (and of
 
39
course with the DISPLAY environment variable appropriately set) or
 
40
restart the X session.
 
41
 
 
42
If this still doesn't work, perhaps your X font path does not contain
 
43
/usr/lib/X11/fonts/Type1 (or /usr/X11R6/lib/X11/fonts/Type1, which
 
44
should be equivalent since /usr/lib/X11 is usually a symbolic link to
 
45
../X11R6/lib/X11). If this path is not present in your
 
46
/etc/X11/XF86Config-4 (or /etc/X11/XF86Config, depending on which
 
47
version of XFree86 you are using), you should really consider adding it.
 
48
 
 
49
You can get your current X font path with "xset q". You can also find
 
50
useful information in /var/log/XFree86.$NUM.log, where $NUM stands for
 
51
the display number of the X session you are interested in.
 
52
 
 
53
You can use xlsfonts to query the X server about the fonts it can see.
 
54
If you want to view samples of the fonts at the same time, you should
 
55
try xfontsel or a similar program such as gtkfontsel.
 
56
 
 
57
For instance, you can list the Latin Modern fonts as seen by X with:
 
58
 
 
59
    xlsfonts -fn "-*-latin modern*-*-*-*-*-*-*-*-*-*-*-*-*"
 
60
 
 
61
xset, xlsfonts and xfontsel are found in the xbase-clients Debian
 
62
package. gtkfontsel is in the gtkfontsel package.
 
63
 
 
64
 
 
65
How to use the Latin Modern fonts with LaTeX-based engines?
 
66
-----------------------------------------------------------
 
67
 
 
68
By LaTeX-based engine, I mean a program such as latex or pdflatex. This
 
69
is very simple: just type \usepackage{lmodern} in the preamble of your
 
70
documents. This will redefine \rmdefault, \sfdefault and \ttdefault so
 
71
that the default Roman, Sans Serif and TeleType fonts are taken from the
 
72
Latin Modern family.
 
73
 
 
74
Don't forget to also include the fontenc and inputenc packages,
 
75
otherwise you could still have font-related problems (however, these
 
76
would not be directly related to Latin Modern).
 
77
 
 
78
 
 
79
How to use the Latin Modern fonts with TeX?
 
80
-------------------------------------------
 
81
 
 
82
If you are using TeX directly, you should know that. ;-)
 
83
You can find the name of the fonts as far as TeX sees them with the
 
84
following command (this assumes lmodern is installed):
 
85
 
 
86
  dpkg -L lmodern | grep '\.tfm$' | sed 's@.*/\([^/]\{1,\}\)\.tfm$@\1@'
 
87
 
 
88
Then, to use lmr10 for instance, you can do:
 
89
 
 
90
  \font\Myfont=cork-lmr10 {\Myfont Sample text in lmr10}
 
91
 
 
92
 
 
93
The PFM files are not included
 
94
------------------------------
 
95
 
 
96
The upstream tarball of the Latin Modern fonts comes with PFM files
 
97
(Printer Font Metrics). As they seem to be hardly ever used in the free
 
98
software world, they are not included in this Debian package in order to
 
99
save space. The package contains the AFM files (Adobe Font Metrics)
 
100
however, which should be equivalent to the PFM files but are much more
 
101
common in the free software world in my experience.
 
102
 
 
103
If you have a reason to think that the PFM files should be included,
 
104
please contact me.
 
105
 
 
106
 
 
107
If you have a /etc/texmf/updmap.d/10lmodern.bak file
 
108
----------------------------------------------------
 
109
 
 
110
If there is a /etc/texmf/updmap.d/10lmodern.bak file on your system, it
 
111
means that either you created it yourself, or you installed an
 
112
unofficial package of lmodern[2]. In the latter case, you can delete
 
113
this file. The official (Debian) lmodern package does not use it nor
 
114
modify it at all.
 
115
 
 
116
 
 
117
I have removed the package. I did not purge it. I swear! Where is my
 
118
much beloved hand-crafted /etc/texmf/updmap.d/10lmodern.cfg file???
 
119
--------------------------------------------------------------------
 
120
 
 
121
Relax, I didn't erase it. It was saved as
 
122
/var/lib/lmodern/10lmodern.cfg.saved. I could not let it in
 
123
/etc/texmf/updmap.d/ because otherwise, it would have been found by
 
124
update-updmap. I could not rename it to something visible under
 
125
/etc/texmf/updmap.d/ because it might be that all packages owning that
 
126
directory get removed, causing an error because it would not be empty.
 
127
 
 
128
Actually, the way the Debian teTeX packages currently handle the
 
129
updmap.cfg customization makes it impossible to have
 
130
/etc/texmf/updmap.d/10lmodern.cfg be a conffile. So, it is a simple
 
131
configuration file (which actually is not at all simpler than if it were
 
132
a conffile). Yes, a configuration file is not necessarily a conffile. If
 
133
you don't understand this, I suggest you read the relevant parts of
 
134
Debian Policy (section 10.7 in debian-policy version 3.6.1.0).
 
135
 
 
136
When you reinstall the package (supposing it has not been purged
 
137
meanwhile), /var/lib/lmodern/10lmodern.cfg.saved will be renamed to
 
138
/etc/texmf/updmap.d/10lmodern.cfg, effectively restoring the
 
139
configuration you had when you removed the package. If
 
140
/etc/texmf/updmap.d/10lmodern.cfg was not simply modified but actually
 
141
deleted when the package got removed, the fact is also noted under
 
142
/var/lib/lmodern/ and your change will be preserved when the package is
 
143
reinstalled.
 
144
 
 
145
Finally, when the package is purged, /var/lib/lmodern is erased and all
 
146
configuration done to the package is lost. All this is normal Debian
 
147
Policy behavior.
 
148
 
 
149
 
 
150
[1] By *in*directly, I mean, through defoma, Fontconfig and FreeType,
 
151
    for instance.
 
152
 
 
153
[2] The unofficial lmodern package distributed by Michael Wiedmann on
 
154
    http://www.miwie.org/lm/ before the official package came into
 
155
    existence used to rename /etc/texmf/updmap.d/10lmodern.cfg to
 
156
    /etc/texmf/updmap.d/10lmodern.bak when removed.
 
157
 
 
158
 
 
159
-- 
 
160
Florent Rougon <f.rougon@free.fr>                          March 7, 2004
 
161
 
 
162
 -- Florent Rougon <f.rougon@free.fr>, Sun Mar  7 20:46:37 2004