work on splitting the lmodern opentype fonts of the main package
Norbert Preining
11 years ago
0 | <?xml version="1.0"?> | |
1 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
2 | <fontconfig> | |
3 | <!-- Scan for OpenType fonts --> | |
4 | <dir>/usr/share/texmf/fonts/opentype/public/lm</dir> | |
5 | <!-- Reject Type 1 fonts --> | |
6 | <selectfont> | |
7 | <rejectfont> | |
8 | <pattern> | |
9 | <patelt name="family"><string>LMMono10</string></patelt> | |
10 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
11 | </pattern> | |
12 | <pattern> | |
13 | <patelt name="family"><string>LMMonoCaps10</string></patelt> | |
14 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
15 | </pattern> | |
16 | <pattern> | |
17 | <patelt name="family"><string>LMMonoLt10</string></patelt> | |
18 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
19 | </pattern> | |
20 | <pattern> | |
21 | <patelt name="family"><string>LMMonoLtCond10</string></patelt> | |
22 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
23 | </pattern> | |
24 | <pattern> | |
25 | <patelt name="family"><string>LMMonoProp10</string></patelt> | |
26 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
27 | </pattern> | |
28 | <pattern> | |
29 | <patelt name="family"><string>LMMonoPropLt10</string></patelt> | |
30 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
31 | </pattern> | |
32 | <pattern> | |
33 | <patelt name="family"><string>LMMonoSlant10</string></patelt> | |
34 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
35 | </pattern> | |
36 | <pattern> | |
37 | <patelt name="family"><string>LMRoman10</string></patelt> | |
38 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
39 | </pattern> | |
40 | <pattern> | |
41 | <patelt name="family"><string>LMRomanCaps10</string></patelt> | |
42 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
43 | </pattern> | |
44 | <pattern> | |
45 | <patelt name="family"><string>LMRomanDemi10</string></patelt> | |
46 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
47 | </pattern> | |
48 | <pattern> | |
49 | <patelt name="family"><string>LMRomanDunh10</string></patelt> | |
50 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
51 | </pattern> | |
52 | <pattern> | |
53 | <patelt name="family"><string>LMRomanSlant10</string></patelt> | |
54 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
55 | </pattern> | |
56 | <pattern> | |
57 | <patelt name="family"><string>LMRomanUnsl10</string></patelt> | |
58 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
59 | </pattern> | |
60 | <pattern> | |
61 | <patelt name="family"><string>LMSans10</string></patelt> | |
62 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
63 | </pattern> | |
64 | <pattern> | |
65 | <patelt name="family"><string>LMSansDemiCond10</string></patelt> | |
66 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
67 | </pattern> | |
68 | <pattern> | |
69 | <patelt name="family"><string>LMSansQuot8</string></patelt> | |
70 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
71 | </pattern> | |
72 | </rejectfont> | |
73 | </selectfont> | |
74 | </fontconfig> |
0 | <?xml version="1.0"?> | |
1 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
2 | <fontconfig> | |
3 | <!-- Scan for OpenType fonts --> | |
4 | <dir>/usr/share/texmf/fonts/opentype/public/lm</dir> | |
5 | <!-- Reject Type 1 fonts --> | |
6 | <selectfont> | |
7 | <rejectfont> | |
8 | <pattern> | |
9 | <patelt name="family"><string>LMMono10</string></patelt> | |
10 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
11 | </pattern> | |
12 | <pattern> | |
13 | <patelt name="family"><string>LMMonoCaps10</string></patelt> | |
14 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
15 | </pattern> | |
16 | <pattern> | |
17 | <patelt name="family"><string>LMMonoLt10</string></patelt> | |
18 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
19 | </pattern> | |
20 | <pattern> | |
21 | <patelt name="family"><string>LMMonoLtCond10</string></patelt> | |
22 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
23 | </pattern> | |
24 | <pattern> | |
25 | <patelt name="family"><string>LMMonoProp10</string></patelt> | |
26 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
27 | </pattern> | |
28 | <pattern> | |
29 | <patelt name="family"><string>LMMonoPropLt10</string></patelt> | |
30 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
31 | </pattern> | |
32 | <pattern> | |
33 | <patelt name="family"><string>LMMonoSlant10</string></patelt> | |
34 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
35 | </pattern> | |
36 | <pattern> | |
37 | <patelt name="family"><string>LMRoman10</string></patelt> | |
38 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
39 | </pattern> | |
40 | <pattern> | |
41 | <patelt name="family"><string>LMRomanCaps10</string></patelt> | |
42 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
43 | </pattern> | |
44 | <pattern> | |
45 | <patelt name="family"><string>LMRomanDemi10</string></patelt> | |
46 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
47 | </pattern> | |
48 | <pattern> | |
49 | <patelt name="family"><string>LMRomanDunh10</string></patelt> | |
50 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
51 | </pattern> | |
52 | <pattern> | |
53 | <patelt name="family"><string>LMRomanSlant10</string></patelt> | |
54 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
55 | </pattern> | |
56 | <pattern> | |
57 | <patelt name="family"><string>LMRomanUnsl10</string></patelt> | |
58 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
59 | </pattern> | |
60 | <pattern> | |
61 | <patelt name="family"><string>LMSans10</string></patelt> | |
62 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
63 | </pattern> | |
64 | <pattern> | |
65 | <patelt name="family"><string>LMSansDemiCond10</string></patelt> | |
66 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
67 | </pattern> | |
68 | <pattern> | |
69 | <patelt name="family"><string>LMSansQuot8</string></patelt> | |
70 | <patelt name="fontformat"><string>Type 1</string></patelt> | |
71 | </pattern> | |
72 | </rejectfont> | |
73 | </selectfont> | |
74 | </fontconfig> |
0 | lmodern (0.99.3-1) unstable; urgency=low | |
1 | ||
2 | * The designers of the Latin Modern fonts have changed the names of | |
3 | several font metric files. The LaTeX support for these fonts has been | |
4 | updated accordingly. However, these name changes break the ConTeXt | |
5 | support in teTeX 3 for these fonts. In addition, DVI files created | |
6 | with a previous version of the fonts no longer work (or will give | |
7 | checksum mismatch warnings). Please recreate DVI files! | |
8 | ||
9 | As a temporary work around, this version of the lmodern package installs | |
10 | links and an additonal font map file, reenabling the former names of | |
11 | font metric files. Please note that these links will be removed for | |
12 | the next stable release after etch. | |
13 | ||
14 | -- Norbert Preining <preining@logic.at> Mon, 6 Feb 2006 17:59:59 +0100 |
0 | * Split the OpenType fonts (7 MB out of 44 MB) in an otf-lmodern package? |
0 | 0 | lmodern (2.004.2-2~1) UNRELEASED; urgency=low |
1 | 1 | |
2 | * split OTF fonts into a separate package fonts-lmodern | |
3 | (Closes: #689580, #689581) | |
2 | 4 | * don't mention defoma in description anymore (Closes: #685120) |
3 | 5 | * install a fontconfig file that makes the opentype fonts available |
4 | 6 | and disables the type 1 fonts for fontconfig |
5 | 7 | (Closes: #687940, #645841) |
6 | ||
7 | -- Norbert Preining <preining@debian.org> Tue, 25 Sep 2012 13:29:33 +0900 | |
8 | * clean out cruft in the maintainer scripts | |
9 | ||
10 | -- Norbert Preining <preining@debian.org> Wed, 10 Oct 2012 10:33:56 +0900 | |
8 | 11 | |
9 | 12 | lmodern (2.004.2-1) unstable; urgency=low |
10 | 13 |
0 | usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc usr/share/texmf/fonts/enc/dvips/lm/cork-lm.enc | |
1 | usr/share/texmf/fonts/tfm/public/lm/ec-lmb10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmb10.tfm | |
2 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbo10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbo10.tfm | |
3 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx10.tfm | |
4 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx12.tfm | |
5 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx5.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx5.tfm | |
6 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx6.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx6.tfm | |
7 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx7.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx7.tfm | |
8 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx8.tfm | |
9 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbx9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbx9.tfm | |
10 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbxi10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbxi10.tfm | |
11 | usr/share/texmf/fonts/tfm/public/lm/ec-lmbxo10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmbxo10.tfm | |
12 | usr/share/texmf/fonts/tfm/public/lm/ec-lmcsc10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmcsc10.tfm | |
13 | usr/share/texmf/fonts/tfm/public/lm/ec-lmcsco10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmcsco10.tfm | |
14 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr10.tfm | |
15 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr12.tfm | |
16 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr17.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr17.tfm | |
17 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr5.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr5.tfm | |
18 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr6.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr6.tfm | |
19 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr7.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr7.tfm | |
20 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr8.tfm | |
21 | usr/share/texmf/fonts/tfm/public/lm/ec-lmr9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmr9.tfm | |
22 | usr/share/texmf/fonts/tfm/public/lm/ec-lmri10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmri10.tfm | |
23 | usr/share/texmf/fonts/tfm/public/lm/ec-lmri12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmri12.tfm | |
24 | usr/share/texmf/fonts/tfm/public/lm/ec-lmri7.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmri7.tfm | |
25 | usr/share/texmf/fonts/tfm/public/lm/ec-lmri8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmri8.tfm | |
26 | usr/share/texmf/fonts/tfm/public/lm/ec-lmri9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmri9.tfm | |
27 | usr/share/texmf/fonts/tfm/public/lm/ec-lmro10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmro10.tfm | |
28 | usr/share/texmf/fonts/tfm/public/lm/ec-lmro12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmro12.tfm | |
29 | usr/share/texmf/fonts/tfm/public/lm/ec-lmro8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmro8.tfm | |
30 | usr/share/texmf/fonts/tfm/public/lm/ec-lmro9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmro9.tfm | |
31 | usr/share/texmf/fonts/tfm/public/lm/ec-lmss10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmss10.tfm | |
32 | usr/share/texmf/fonts/tfm/public/lm/ec-lmss12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmss12.tfm | |
33 | usr/share/texmf/fonts/tfm/public/lm/ec-lmss17.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmss17.tfm | |
34 | usr/share/texmf/fonts/tfm/public/lm/ec-lmss8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmss8.tfm | |
35 | usr/share/texmf/fonts/tfm/public/lm/ec-lmss9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmss9.tfm | |
36 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssbo10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssbo10.tfm | |
37 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssbx10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssbx10.tfm | |
38 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssdc10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssdc10.tfm | |
39 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssdo10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssdo10.tfm | |
40 | usr/share/texmf/fonts/tfm/public/lm/ec-lmsso10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmsso10.tfm | |
41 | usr/share/texmf/fonts/tfm/public/lm/ec-lmsso12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmsso12.tfm | |
42 | usr/share/texmf/fonts/tfm/public/lm/ec-lmsso17.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmsso17.tfm | |
43 | usr/share/texmf/fonts/tfm/public/lm/ec-lmsso8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmsso8.tfm | |
44 | usr/share/texmf/fonts/tfm/public/lm/ec-lmsso9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmsso9.tfm | |
45 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssq8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssq8.tfm | |
46 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssqbo8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssqbo8.tfm | |
47 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssqbx8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssqbx8.tfm | |
48 | usr/share/texmf/fonts/tfm/public/lm/ec-lmssqo8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmssqo8.tfm | |
49 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtcsc10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtcsc10.tfm | |
50 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtt10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtt10.tfm | |
51 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtt12.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtt12.tfm | |
52 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtt8.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtt8.tfm | |
53 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtt9.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtt9.tfm | |
54 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtti10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtti10.tfm | |
55 | usr/share/texmf/fonts/tfm/public/lm/ec-lmtto10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmtto10.tfm | |
56 | usr/share/texmf/fonts/tfm/public/lm/ec-lmvtt10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmvtt10.tfm | |
57 | usr/share/texmf/fonts/tfm/public/lm/ec-lmvtto10.tfm usr/share/texmf/fonts/tfm/public/lm/cork-lmvtto10.tfm |
13 | 13 | Section: fonts |
14 | 14 | Architecture: all |
15 | 15 | Pre-Depends: ${misc:Pre-Depends} |
16 | Depends: ${misc:Depends} | |
16 | Depends: ${misc:Depends}, fonts-lmodern (= ${source:Version}) | |
17 | 17 | Conflicts: lm, lmodern-x11, context (<= 2008.10.31-1) |
18 | 18 | Replaces: lm, lmodern-x11 |
19 | 19 | Description: scalable PostScript and OpenType fonts based on Computer Modern |
21 | 21 | scalable fonts in PostScript Type 1 and OpenType formats. They are |
22 | 22 | based on the PostScript Type 1 version of the Computer Modern fonts |
23 | 23 | and contain many additional characters (mostly accented ones). |
24 | . | |
25 | This package provides TeX support and Type1 (PostScript) fonts. If only | |
26 | the OpenType fonts are needed, please see the package fonts-lmodern. | |
27 | . | |
28 | See the description for fonts-lmodern package for more information. | |
29 | ||
30 | Package: fonts-lmodern | |
31 | Section: fonts | |
32 | Architecture: all | |
33 | Pre-Depends: ${misc:Pre-Depends} | |
34 | Depends: ${misc:Depends} | |
35 | Replaces: lmodern (<= 2.004.2-1) | |
36 | Breaks: lmodern (<= 2.004.2-1) | |
37 | Description: OpenType fonts based on Computer Modern | |
38 | The Latin Modern fonts, also known as "lm fonts", are a set of | |
39 | scalable fonts in PostScript Type 1 and OpenType formats. They are | |
40 | based on the PostScript Type 1 version of the Computer Modern fonts | |
41 | and contain many additional characters (mostly accented ones). | |
42 | . | |
43 | This package provides the OpenType variant of these fonts. For support | |
44 | for TeX and Type 1 (PostScript) fonts, see the lmodern package. | |
24 | 45 | . |
25 | 46 | The Latin Modern fonts were generated using MetaType1, a program |
26 | 47 | based on MetaPost for generating PostScript Type 1 fonts |
30 | 51 | that have no equivalent in this package; additionally, there are |
31 | 52 | character sets that are supported by cm-super and not by the Latin |
32 | 53 | Modern fonts). |
33 | . | |
34 | The fonts are setup for use with the TeX typesetting system, as well | |
35 | as core X11 fonts system and Fontconfig, which makes it possible | |
36 | to use them in any X application. |
0 | Note for experienced users | |
1 | -------------------------- | |
2 | ||
3 | The Latin Modern fonts can be used as a substitution for CM, CS, PL, and VN as | |
4 | mentioned in the README file. Several map files and encoding files (the ones | |
5 | with '-rep-' in their name) have been prepared for this purpose and can be | |
6 | found in <TEXMFMAIN>/fonts/map/dvips/lm and <TEXMFMAIN>/fonts/enc/dvips/lm. | |
7 | ||
8 | To make use of these map files, you should place the appropriate .cfg file(s) | |
9 | from this directory into /etc/texmf/updmap.d/. Don't forget to run | |
10 | update-updmap, mktexlsr and updmap-sys afterwards. |
0 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
1 | # -_- DebPkgProvidedMaps -_- | |
2 | # | |
3 | # (more details in update-updmap(1)) | |
4 | # | |
5 | MixedMap lm-rep-cmtest-interpolated.map | |
6 | MixedMap lm-rep-cmtext.map |
0 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
1 | # -_- DebPkgProvidedMaps -_- | |
2 | # | |
3 | # (more details in update-updmap(1)) | |
4 | # | |
5 | MixedMap lm-rep-cstext.map |
0 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
1 | # -_- DebPkgProvidedMaps -_- | |
2 | # | |
3 | # (more details in update-updmap(1)) | |
4 | # | |
5 | MixedMap lm-rep-pltext.map |
0 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
1 | # -_- DebPkgProvidedMaps -_- | |
2 | # | |
3 | # (more details in update-updmap(1)) | |
4 | # | |
5 | MixedMap lm-rep-vntext.map |
0 | fonts/opentype/public/lm/*.otf usr/share/texmf/fonts/opentype/public/lm | |
1 | doc/fonts/lm/* usr/share/doc/texmf/fonts/lm | |
2 | debian/65-fonts-lmodern.conf etc/fonts/conf.avail |
0 | usr/share/doc/texmf/fonts/lm/README-Latin-Modern.TXT usr/share/doc/fonts-lmodern/README | |
1 | usr/share/doc/texmf/fonts/lm/MANIFEST-Latin-Modern.TXT usr/share/doc/fonts-lmodern/MANIFEST.txt | |
2 | usr/share/doc/texmf/fonts/lm/lm-hist.txt usr/share/doc/fonts-lmodern/lm-hist.txt | |
3 | usr/share/doc/texmf/fonts/lm/lm-info.pdf usr/share/doc/fonts-lmodern/lm-info.pdf | |
4 | etc/fonts/conf.avail/65-fonts-lmodern.conf etc/fonts/conf.d/65-fonts-lmodern.conf |
0 | fonts-lmodern binary: extra-license-file usr/share/doc/texmf/fonts/lm/GUST-FONT-LICENSE.TXT |
0 | <?xml version='1.0'?> | |
1 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
2 | <fontconfig> | |
3 | <match target="font" > | |
4 | <test qual="any" name="family"> | |
5 | <string>LMMathExtension10</string> | |
6 | <string>LMMathItalic10</string> | |
7 | <string>LMMathItalic12</string> | |
8 | <string>LMMathItalic5</string> | |
9 | <string>LMMathItalic6</string> | |
10 | <string>LMMathItalic7</string> | |
11 | <string>LMMathItalic8</string> | |
12 | <string>LMMathItalic9</string> | |
13 | <string>LMMathSymbols10</string> | |
14 | <string>LMMathSymbols5</string> | |
15 | <string>LMMathSymbols6</string> | |
16 | <string>LMMathSymbols7</string> | |
17 | <string>LMMathSymbols8</string> | |
18 | <string>LMMathSymbols9</string> | |
19 | <string>LMMono10</string> | |
20 | <string>LMMono12</string> | |
21 | <string>LMMono8</string> | |
22 | <string>LMMono9</string> | |
23 | <string>LMMonoCaps10</string> | |
24 | <string>LMMonoLt10</string> | |
25 | <string>LMMonoLtCond10</string> | |
26 | <string>LMMonoProp10</string> | |
27 | <string>LMMonoPropLt10</string> | |
28 | <string>LMMonoSlant10</string> | |
29 | <string>LMRoman10</string> | |
30 | <string>LMRoman12</string> | |
31 | <string>LMRoman17</string> | |
32 | <string>LMRoman5</string> | |
33 | <string>LMRoman6</string> | |
34 | <string>LMRoman7</string> | |
35 | <string>LMRoman8</string> | |
36 | <string>LMRoman9</string> | |
37 | <string>LMRomanCaps10</string> | |
38 | <string>LMRomanDemi10</string> | |
39 | <string>LMRomanDunh10</string> | |
40 | <string>LMRomanSlant10</string> | |
41 | <string>LMRomanSlant12</string> | |
42 | <string>LMRomanSlant17</string> | |
43 | <string>LMRomanSlant8</string> | |
44 | <string>LMRomanSlant9</string> | |
45 | <string>LMRomanUnsl10</string> | |
46 | <string>LMSans10</string> | |
47 | <string>LMSans12</string> | |
48 | <string>LMSans17</string> | |
49 | <string>LMSans8</string> | |
50 | <string>LMSans9</string> | |
51 | <string>LMSansDemiCond10</string> | |
52 | <string>LMSansQuot8</string> | |
53 | </test> | |
54 | <edit name="autohint" mode="assign"><bool>true</bool></edit> | |
55 | </match> | |
56 | </fontconfig> | |
57 |
7 | 7 | - the TeX typesetting system (TeX, LaTeX, pdfTeX, pdfLaTeX, xdvi, |
8 | 8 | Dvips, etc.); |
9 | 9 | |
10 | - desktop environments; | |
10 | - the core X11 fonts system[1], for use by any X application; | |
11 | 11 | |
12 | - the core X11 fonts system[1], for use by any X application. | |
12 | - for desktop environments using fontconfig the OpenType variant of | |
13 | these fonts are activated by the fonts-lmodern package. | |
14 | ||
15 | ||
16 | Contents | |
17 | ========= | |
18 | * How to use the Latin Modern fonts with X11? | |
19 | * How to use the Latin Modern fonts with LaTeX-based engines[1]? | |
20 | * How to use the Latin Modern fonts with TeX? | |
21 | * How to use the Latin Modern fonts as replacement for CM, CS, PL, and VN? | |
22 | * How to deal with old DVI files | |
23 | * The PFM files are not included | |
24 | * If you have a /etc/texmf/updmap.d/10lmodern.bak file | |
13 | 25 | |
14 | 26 | |
15 | 27 | How to use the Latin Modern fonts with X11? |
83 | 95 | things such as \'e will probably not do what you would like. |
84 | 96 | |
85 | 97 | |
98 | How to use the Latin Modern fonts as replacement for CM, CS, PL, and VN? | |
99 | ------------------------------------------------------------------------ | |
100 | The Latin Modern fonts can be used as a substitution for CM, CS, PL, and VN as | |
101 | mentioned in the README file. Several map files and encoding files (the ones | |
102 | with '-rep-' in their name) have been prepared for this purpose and can be | |
103 | found in <TEXMFMAIN>/fonts/map/dvips/lm and <TEXMFMAIN>/fonts/enc/dvips/lm. | |
104 | ||
105 | To make use of these map files, add (create if necessary) lines to | |
106 | /etc/texmf/web2c/updmap.cfg as follows: | |
107 | For CM: | |
108 | MixedMap lm-rep-cmtest-interpolated.map | |
109 | MixedMap lm-rep-cmtext.map | |
110 | For CS: | |
111 | MixedMap lm-rep-cstext.map | |
112 | For PL: | |
113 | MixedMap lm-rep-pltext.map | |
114 | For VN: | |
115 | MixedMap lm-rep-vntext.map | |
116 | After that run updmap-sys as root. | |
117 | ||
118 | ||
119 | How to deal with old DVI files | |
120 | ------------------------------ | |
121 | If you have old DVI files using the names of pre version 1 release of | |
122 | lmodern, you have two options: The best is to rebuild the DVI files so that | |
123 | new names are used. If this is not possible, you can activate the map file | |
124 | cork-lm.map by calling | |
125 | updmap-sys --enable Map cork-lm.map | |
126 | as root, or adding (creating if necessary) a line | |
127 | Map cork-lm.map | |
128 | in /etc/texmf/web2c/updmap.cfg and calling updmap-sys as root. | |
129 | ||
130 | ||
86 | 131 | The PFM files are not included |
87 | 132 | ------------------------------ |
88 | 133 | |
116 | 161 | |
117 | 162 | |
118 | 163 | -- Florent Rougon <frn@debian.org>, Sun Mar 25 12:52:11 2007 |
164 | -- Norbert Preining <preining@debian.org>, Wed Oct 10 10:18:32 JST 2012 |
0 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
1 | # -_- DebPkgProvidedMaps -_- | |
2 | # This file will *not* be included in updmap.cfg if the lmodern package is | |
3 | # removed. Please read update-updmap(1) for details. | |
4 | # | |
5 | # This file is part of the set of files used to (indirectly) generate the | |
6 | # final map files such as psfonts_{t1,pk}.map, {pdftex,dvipdfm}_{,n}dl14.map, | |
7 | # ps2pk.map, builtin35.map and download35.map under /var/lib/texmf/fonts/map/ | |
8 | # (with psfonts.map being a symbolic link to one of psfonts_{t1,pk}.map, | |
9 | # pdftex.map a symbolic link to one of pdftex_{,n}dl14.map and dvipdfm.map a | |
10 | # symbolic link to one of dvipdfm_{,n}dl14.map, the choice depending on your | |
11 | # updmap configuration, which you can customize by altering the files in | |
12 | # /etc/texmf/updmap.d/ and running update-updmap). | |
13 | # | |
14 | # You should *not* modify the aforementioned final map files under | |
15 | # /var/lib/texmf/fonts/map/ directly, for they are automatically generated by | |
16 | # updmap-sys(1). Instead, you should read update-updmap(1), updmap-sys(1) and | |
17 | # if you actually need to make changes to the aforementioned final map files, | |
18 | # you should make the changes in /etc/texmf/updmap.d/, use update-updmap to | |
19 | # regenerate /var/lib/texmf/web2c/updmap.cfg and finally updmap-sys to | |
20 | # regenerate the final map files. | |
21 | # | |
22 | # Reading /etc/texmf/updmap.d/00updmap.cfg can also help understand how all | |
23 | # this works. | |
24 | # | |
25 | # | |
26 | # Declare the basic Latin Modern map files for use by the updmap-sys(1) | |
27 | # machinery. | |
28 | @LMODERN_BASIC_MAP_DECLARATIONS@ | |
29 | # | |
30 | # This map file can be enabled for compatibility with old DVI files, but the | |
31 | # better thing to do instead of using this workaround is to rebuild these | |
32 | # files with new LM fonts so that they use up-to-date font names. | |
33 | # Map cork-lm.map |
0 | fonts/type1/public/lm/*.pfb usr/share/texmf/fonts/type1/public/lm | |
1 | fonts/afm/public/lm/*.afm usr/share/texmf/fonts/afm/public/lm | |
2 | fonts/tfm/public/lm/*.tfm usr/share/texmf/fonts/tfm/public/lm | |
3 | fonts/enc/dvips/lm/*.enc usr/share/texmf/fonts/enc/dvips/lm | |
4 | fonts/map/dvips/lm/*.map usr/share/texmf/fonts/map/dvips/lm | |
5 | # install cork-lm.map which helps xdvi/dvips/etc for old dvi files | |
6 | # with old file names. This file is not disabled by default | |
7 | # in lmodern.cfg. | |
8 | debian/cork-lm.map usr/share/texmf/fonts/map/dvips/lm | |
9 | tex/latex/lm/*.fd tex/latex/lm/*.sty usr/share/texmf/tex/latex/lm | |
10 | debian/lmodern.scale etc/X11/fonts/Type1 | |
11 |
0 | usr/share/doc/texmf/fonts/lm/README-Latin-Modern.TXT usr/share/doc/lmodern/README | |
1 | usr/share/doc/texmf/fonts/lm/MANIFEST-Latin-Modern.TXT usr/share/doc/lmodern/MANIFEST.txt | |
2 | usr/share/doc/texmf/fonts/lm/lm-hist.txt usr/share/doc/lmodern/lm-hist.txt | |
3 | usr/share/doc/texmf/fonts/lm/lm-info.pdf usr/share/doc/lmodern/lm-info.pdf |
0 | # There is no need to depend on ucf: if present (and we are upgrading from | |
1 | # lmodern experimental versions 0.92-{4,5,6}), we call it to purge the | |
2 | # now-unused data; otherwise, there is nothing to purge anymore. | |
3 | lmodern binary: maintainer-script-needs-depends-on-ucf preinst | |
4 | lmodern binary: extra-license-file usr/share/doc/texmf/fonts/lm/GUST-FONT-LICENSE.txt |
0 | #! /bin/sh -e | |
1 | ||
2 | PACKAGE=lmodern | |
3 | ||
4 | CONFIG_FILE_BASE_NAME=10lmodern.cfg | |
5 | CONFIG_FILE="/etc/texmf/updmap.d/$CONFIG_FILE_BASE_NAME" | |
6 | ||
7 | # Stuff from the old (teTeX 2 times) updmap scheme | |
8 | OLD_STATE_DIR="/var/lib/$PACKAGE" | |
9 | SAVED_CONFIG_FILE="$OLD_STATE_DIR/${CONFIG_FILE_BASE_NAME}.saved" | |
10 | NO_CONFIG_FILE="$OLD_STATE_DIR/admin-wants-no-lmodern.cfg" | |
11 | ||
12 | case "$1" in | |
13 | remove|disappear) | |
14 | # People who installed lmodern 0.92-7 in the same apt run that was | |
15 | # doing the teTeX 2 to teTeX 3 upgrade may have this file lying around | |
16 | # (see bug #334658). However, the file should have been deleted when | |
17 | # upgrading to the first version that is >= 0.92-10. I am just making | |
18 | # really, really sure that we don't pollute the user's system. | |
19 | rm -f /etc/texmf/dvips/lm.map.dpkg-new | |
20 | ;; | |
21 | ||
22 | purge) | |
23 | # Supposing updmap.cfg & Co are clean (which I think is a reasonable | |
24 | # assumption), we don't need to call try_to_update_fontmaps(). | |
25 | # Calling it on remove _and_ on purge just for hypothetical users | |
26 | # who would break their config before purging this package seems to | |
27 | # be more annoying than useful (it takes a lot of time). | |
28 | ;; | |
29 | ||
30 | abort-upgrade|abort-install) | |
31 | # If there was a previous version, and it dates back to the teTeX 2 | |
32 | # times | |
33 | if [ $# -eq 2 ] && dpkg --compare-versions "$2" le 0.92-7; then | |
34 | [ ! -d "$OLD_STATE_DIR" ] && mkdir --mode=755 "$OLD_STATE_DIR" | |
35 | ||
36 | # If the package was previously removed-but-not-purged (i.e., | |
37 | # 'preinst install <old-version>' was interrupted) | |
38 | if [ "$1" = abort-install ]; then | |
39 | if [ -f "$CONFIG_FILE" ] && [ ! -f "$NO_CONFIG_FILE" ]; then | |
40 | mv "$CONFIG_FILE" "$SAVED_CONFIG_FILE" | |
41 | fi | |
42 | ||
43 | [ -f "$NO_CONFIG_FILE" ] && rm -f "$CONFIG_FILE" | |
44 | fi | |
45 | fi | |
46 | ;; | |
47 | ||
48 | upgrade|failed-upgrade) | |
49 | ;; | |
50 | ||
51 | *) | |
52 | echo "postrm called with unknown argument '$1'" >&2 | |
53 | exit 1 | |
54 | ;; | |
55 | esac | |
56 | ||
57 | #DEBHELPER# | |
58 | ||
59 | exit 0 |
0 | 0 | #! /bin/sh -e |
1 | ||
2 | PACKAGE=lmodern | |
3 | ||
4 | CONFIG_FILE_BASE_NAME=10lmodern.cfg | |
5 | CONFIG_FILE="/etc/texmf/updmap.d/$CONFIG_FILE_BASE_NAME" | |
6 | TEMP_CONFIG_FILE="$OLD_STATE_DIR/${CONFIG_FILE_BASE_NAME}.tmp" | |
7 | ||
8 | # Stuff from the old (teTeX 2 times) updmap scheme | |
9 | OLD_STATE_DIR="/var/lib/$PACKAGE" | |
10 | SAVED_CONFIG_FILE="$OLD_STATE_DIR/${CONFIG_FILE_BASE_NAME}.saved" | |
11 | NO_CONFIG_FILE="$OLD_STATE_DIR/admin-wants-no-lmodern.cfg" | |
12 | ||
13 | ||
14 | # Function to call when upgrading from experimental versions 0.92-{4,5,6} | |
15 | remove_stuff_from_experimental_versions() | |
16 | { | |
17 | # If ucf is not installed anymore, the data to purge was already | |
18 | # removed (along with ucf), in which case there is no problem not | |
19 | # running 'ucf --purge'. | |
20 | [ -x /usr/bin/ucf ] && ucf --purge "$CONFIG_FILE" | |
21 | ||
22 | rm -f "$OLD_STATE_DIR/ucf_should_not_recreate_the_config_file" | |
23 | ||
24 | CONFIG_FILE_CRUFT_DIR="$OLD_STATE_DIR/config-file-cruft" | |
25 | CONFIG_FILE_CRUFT_SUFFIXES='~ % .bak .dpkg-tmp .dpkg-new .dpkg-old | |
26 | .dpkg-dist' | |
27 | for suffix in $CONFIG_FILE_CRUFT_SUFFIXES; do | |
28 | rm -f "$CONFIG_FILE_CRUFT_DIR/$CONFIG_FILE_BASE_NAME$suffix" | |
29 | done | |
30 | [ -d "$CONFIG_FILE_CRUFT_DIR" ] && rmdir "$CONFIG_FILE_CRUFT_DIR" | |
31 | ||
32 | return 0 | |
33 | } | |
34 | ||
35 | # Transition from the (update-)updmap scheme in use with teTeX 2 | |
36 | transition_from_old_updmap_scheme() | |
37 | { | |
38 | # At the end of this block, we should have a $CONFIG_FILE. | |
39 | if ! [ -f "$CONFIG_FILE" ]; then | |
40 | if [ -f "$SAVED_CONFIG_FILE" ]; then | |
41 | # The package was simply removed. | |
42 | mv "$SAVED_CONFIG_FILE" "$CONFIG_FILE" | |
43 | else | |
44 | # The user had intentionally deleted $CONFIG_FILE. Create an empty | |
45 | # one with the magic comment. | |
46 | # The temporary file trick allows the script to be idempotent | |
47 | # because rename(2) is guaranteed to be atomic by POSIX. | |
48 | cat > "$TEMP_CONFIG_FILE" <<EndOfEmptyConfigFile | |
49 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
50 | # -_- DebPkgProvidedMaps -_- | |
51 | # This file will *not* be included in updmap.cfg if the lmodern package is | |
52 | # removed. Please read update-updmap(1) for details. | |
53 | EndOfEmptyConfigFile | |
54 | mv "$TEMP_CONFIG_FILE" "$CONFIG_FILE" | |
55 | fi | |
56 | fi | |
57 | ||
58 | # We have a $CONFIG_FILE, therefore it is safe to remove these files now. | |
59 | rm -f "$SAVED_CONFIG_FILE" "$NO_CONFIG_FILE" | |
60 | # The directory should be empty by now. | |
61 | [ -d "$OLD_STATE_DIR" ] && rmdir "$OLD_STATE_DIR" | |
62 | ||
63 | # If the CONFIG_FILE is unchanged, remove it. | |
64 | if [ -f "$CONFIG_FILE" ]; then | |
65 | cnfmdsum=$(md5sum "$CONFIG_FILE" | cut -d ' ' -f 1) | |
66 | if [ "$cnfmdsum" = "77e2ae35bcc1153c4303487472d2bd17" ]; then | |
67 | # We can remove the file as it hasn't been changed. | |
68 | echo "Removing old, unchanged (pseudo-)conffile $CONFIG_FILE" | |
69 | rm -f "$CONFIG_FILE" | |
70 | else | |
71 | # The file was changed. | |
72 | # If it does not contain a magic header, we add it. | |
73 | if ! grep -q '^# -_- DebPkgProvidedMaps -_-' "$CONFIG_FILE"; then | |
74 | cat > "$TEMP_CONFIG_FILE" <<EndOfEmptyConfigFile | |
75 | # Don't delete the following pseudo-comment unless you know what you are doing. | |
76 | # -_- DebPkgProvidedMaps -_- | |
77 | # This file will *not* be included in updmap.cfg if the lmodern package is | |
78 | # removed. Please read update-updmap(1) for details. | |
79 | EndOfEmptyConfigFile | |
80 | cat "$CONFIG_FILE" >> "$TEMP_CONFIG_FILE" | |
81 | mv "$TEMP_CONFIG_FILE" "$CONFIG_FILE" | |
82 | fi | |
83 | fi | |
84 | fi | |
85 | ||
86 | return 0 | |
87 | } | |
88 | ||
89 | # Retrieve the MD5 sum of a conffile from the dpkg database. | |
90 | # | |
91 | # $1 -- package name | |
92 | # $2 -- full (absolute) path to the conffile; this path will be matched | |
93 | # against the output of: | |
94 | # | |
95 | # dpkg-query -W -f='${Conffiles}' <package> | |
96 | # | |
97 | dpkg_md5sum() | |
98 | { | |
99 | package="$1" | |
100 | conffile="$2" | |
101 | ||
102 | sum=$(dpkg-query -W -f='${Conffiles}' "$package" \ | |
103 | | grep -F " $conffile " | cut -d ' ' -f 3) | |
104 | ||
105 | if [ -n "$sum" ]; then | |
106 | echo "$sum" | |
107 | res=0 | |
108 | else | |
109 | echo "Conffile '$conffile' not found in package '$package'" >&2 | |
110 | res=1 | |
111 | fi | |
112 | ||
113 | return $res | |
114 | } | |
115 | ||
116 | move_very_old_map_file_away () | |
117 | { | |
118 | oldfile=/etc/texmf/dvips/lm.map | |
119 | if ! [ -r $oldfile ] ; then | |
120 | return 0 | |
121 | fi | |
122 | originalmd5sum=$(dpkg_md5sum lmodern "$oldfile") || exit 1 | |
123 | installedmd5sum=$(md5sum "$oldfile" | cut -d ' ' -f 1) | |
124 | if [ "$originalmd5sum" = "$installedmd5sum" ] ; then | |
125 | echo "Removing obsolete, unchanged conffile $oldfile" | |
126 | rm $oldfile | |
127 | else | |
128 | mkdir -p /etc/texmf/fonts/map/dvips/lm/ | |
129 | mv $oldfile /etc/texmf/fonts/map/dvips/lm/lm.map.preinst-bak | |
130 | echo " | |
131 | Warning: you appear to have modified $oldfile, but its location | |
132 | is now obsolete. As this is an upgrade from a very old version, your | |
133 | file has been saved in /etc/texmf/fonts/map/dvips/lm/lm.map.preinst-bak, | |
134 | and can be safely deleted. If you want to adapt the lmodern map file, | |
135 | please make a copy of /usr/share/texmf/fonts/map/dvips/lm/lm.map | |
136 | and put it into /etc/texmf/fonts/map/dvips/lm/lm.map." >&2 | |
137 | fi | |
138 | ||
139 | return 0 | |
140 | } | |
141 | ||
142 | config_move () | |
143 | { | |
144 | mode="$1" | |
145 | package="$2" | |
146 | oldfile="$3" | |
147 | newloc="$4" | |
148 | ||
149 | originalmd5sum=$(dpkg_md5sum "$package" "$oldfile") || exit 1 | |
150 | ||
151 | if ! [ -e "$oldfile" ] ; then | |
152 | return 0 | |
153 | fi | |
154 | oldloc=$(dirname "$oldfile") | |
155 | installedmd5sum=$(md5sum "$oldfile" | cut -d ' ' -f 1) | |
156 | ||
157 | # Take care of $oldfile | |
158 | if [ "$originalmd5sum" = "$installedmd5sum" ] ; then | |
159 | echo "Removing obsolete, unchanged conffile $oldfile" | |
160 | rm "$oldfile" | |
161 | else | |
162 | if [ -z "$newloc" ] ; then | |
163 | echo "Conffile $oldfile was changed, leaving it at the same place" | |
164 | else | |
165 | echo "Conffile $oldfile was changed, moving it to new location" \ | |
166 | "$newloc" | |
167 | mkdir -p "$newloc" | |
168 | mv "$oldfile" "$newloc" | |
169 | fi | |
170 | fi | |
171 | ||
172 | # Optionally remove the $oldloc directory (depending on $mode) | |
173 | case "$mode" in | |
174 | remove_dir) | |
175 | test -d "$oldloc" && \ | |
176 | rmdir --ignore-fail-on-non-empty "$oldloc" || true | |
177 | ;; | |
178 | keep_dir) | |
179 | ;; | |
180 | *) | |
181 | echo "Wrong usage of config_move(): \$1 = '$mode'" >&2 | |
182 | exit 1 | |
183 | ;; | |
184 | esac | |
185 | ||
186 | return 0 | |
187 | } | |
188 | ||
189 | ||
190 | # If we are upgrading (in the large sense, including the case where the package | |
191 | # was previously removed-but-not-purged)... | |
192 | if [ $# -eq 2 ] && ( [ "$1" = "install" ] || [ "$1" = "upgrade" ] ); then | |
193 | # ... from a version tailored for the old update-updmap (where $CONFIG_FILE | |
194 | # wasn't allowed to be a conffile) | |
195 | if dpkg --compare-versions "$2" le 0.92-7; then | |
196 | transition_from_old_updmap_scheme | |
197 | move_very_old_map_file_away | |
198 | fi | |
199 | # ... from an experimental version that used ucf | |
200 | # [ Presumably, very few people installed these versions; they weren't | |
201 | # even uploaded to experimental. At some point, we can assume that all | |
202 | # these people have upgraded lmodern since then, and remove this code. ] | |
203 | if dpkg --compare-versions "$2" ge 0.92-4 \ | |
204 | && dpkg --compare-versions "$2" lt 0.92-7; then | |
205 | remove_stuff_from_experimental_versions | |
206 | fi | |
207 | ||
208 | # If we are upgrading from a version v such as 0.92-7 < v < 0.99.3-1, then | |
209 | # lm.map is still in /etc/texmf/map/dvips/lm/. | |
210 | if dpkg --compare-versions "$2" gt 0.92-7 \ | |
211 | && dpkg --compare-versions "$2" lt 0.99.3-1; then | |
212 | config_move remove_dir lmodern /etc/texmf/map/dvips/lm/lm.map \ | |
213 | /etc/texmf/fonts/map/dvips/lm | |
214 | fi | |
215 | ||
216 | # People who installed lmodern 0.92-7 in the same apt run that was doing | |
217 | # the teTeX 2 to teTeX 3 upgrade may have this file lying around (see bug | |
218 | # #334658). | |
219 | rm -f /etc/texmf/dvips/lm.map.dpkg-new | |
220 | ||
221 | # lmodern 0.99.3-3 moved lmodern.scale to /etc/X11/fonts/X11R7/Type1/ | |
222 | # because that was required by X.org, but the latter quickly reverted to | |
223 | # the old location /etc/X11/fonts/Type1; so, let's move | |
224 | # /etc/X11/fonts/X11R7/Type1/lmodern.scale back to /etc/X11/fonts/Type1 if | |
225 | # upgrading from 0.99.3-3. | |
226 | if [ "$2" = 0.99.3-3 ]; then | |
227 | config_move keep_dir lmodern \ | |
228 | /etc/X11/fonts/X11R7/Type1/lmodern.scale /etc/X11/fonts/Type1 | |
229 | fi | |
230 | ||
231 | fi | |
232 | ||
233 | case "$1" in | |
234 | install|upgrade|abort-upgrade) | |
235 | ;; | |
236 | ||
237 | *) | |
238 | echo "preinst called with unknown argument '$1'" >&2 | |
239 | exit 1 | |
240 | ;; | |
241 | esac | |
242 | 1 | |
243 | 2 | if dpkg --compare-versions "$2" lt 2.004.1-3.1; then |
244 | 3 | if [ -x "which defoma-font 2>/dev/null" ]; then |
0 | 0 | #! /usr/bin/make -f |
1 | 1 | |
2 | 2 | PKG := lmodern |
3 | PKGFONTS := fonts-lmodern | |
3 | 4 | PKG_INSTALL_DIR := debian/$(PKG) |
5 | PKGFONTS_INSTALL_DIR := debian/$(PKGFONTS) | |
4 | 6 | |
5 | 7 | INSTALL := install |
6 | 8 | INSTALL_FILE := $(INSTALL) -p -o root -g root -m 644 |
95 | 97 | rm -f build-indep-stamp \ |
96 | 98 | "debian/$(PKG).scale.tmp" "debian/$(PKG).scale" \ |
97 | 99 | "debian/$(PKG).fontlist-x11" "debian/$(PKG).links" \ |
98 | debian/copyright debian/lmodern.cfg | |
100 | debian/copyright | |
99 | 101 | dh_clean |
100 | 102 | |
101 | 103 | binary-indep: build-indep |
108 | 110 | # a dh_link (actually, Perl) process for every symbolic link in this |
109 | 111 | # package. So, $(PKG).links starts as an empty file and (target, link) |
110 | 112 | # pairs will be added to it in the relevant places. |
111 | : > "debian/$(PKG).links" | |
112 | ||
113 | # Add the set of backward compatibility links | |
114 | # This should be removed for etch+1 | |
115 | cat "debian/compat.links" >> "debian/$(PKG).links" | |
116 | ||
117 | dh_installdirs \ | |
118 | usr/share/texmf/fonts/type1/public/lm \ | |
119 | usr/share/texmf/fonts/opentype/public/lm \ | |
120 | usr/share/texmf/fonts/afm/public/lm \ | |
121 | usr/share/texmf/fonts/tfm/public/lm \ | |
122 | usr/share/texmf/fonts/enc/dvips/lm \ | |
123 | usr/share/texmf/fonts/map/dvips/lm \ | |
124 | usr/share/texmf/tex/latex/lm \ | |
125 | usr/share/doc/texmf/fonts/lm \ | |
126 | usr/share/doc/$(PKG)/font-substitution \ | |
127 | etc/X11/fonts/Type1 \ | |
128 | etc/fonts/conf.avail \ | |
129 | usr/share/fonts/X11/Type1 \ | |
130 | usr/share/lintian/overrides | |
131 | ||
132 | # Note: we won't install the PFM files because we already have the | |
133 | # AFM files which are preferred in general. | |
134 | ||
135 | # Install all the PFB files in the right place for TeX and friends | |
136 | $(INSTALL_FILE) fonts/type1/public/lm/*.pfb \ | |
137 | "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/type1/public/lm" | |
138 | ||
139 | # Install all the OpenType files in the right place for TeX and friends | |
140 | $(INSTALL_FILE) fonts/opentype/public/lm/*.otf \ | |
141 | "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/opentype/public/lm" | |
142 | ||
143 | # Install all the AFM files in the right place for TeX and friends | |
144 | for file in fonts/afm/public/lm/*.afm; do \ | |
145 | DEST_FILE="$(PKG_INSTALL_DIR)/usr/share/texmf/$$file" \ | |
146 | && cp "$$file" "$$DEST_FILE" \ | |
147 | && chown root:root "$$DEST_FILE" \ | |
148 | && chmod 644 "$$DEST_FILE"; \ | |
149 | done | |
113 | cat "debian/lmodern.links.in" > "debian/$(PKG).links" | |
150 | 114 | |
151 | 115 | # Setup symlinks so that X can see the AFM and PFB files as well. |
152 | 116 | # Note: we use debian/$(PKG).fontlist-x11 because we are not making |
157 | 121 | sed -nf debian/sed_scripts/gen-x-fonts-links-list \ |
158 | 122 | "debian/$(PKG).fontlist-x11" >> "debian/$(PKG).links" |
159 | 123 | |
160 | $(INSTALL_FILE) "debian/65-$(PKG).conf" \ | |
161 | "$(PKG_INSTALL_DIR)/etc/fonts/conf.avail" | |
162 | ||
163 | $(INSTALL_FILE) "debian/$(PKG).scale" \ | |
164 | "$(PKG_INSTALL_DIR)/etc/X11/fonts/Type1" | |
124 | dh_install | |
165 | 125 | dh_installxfonts |
166 | 126 | |
167 | $(INSTALL_FILE) fonts/tfm/public/lm/*.tfm \ | |
168 | "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/tfm/public/lm" | |
127 | # Install the standard conffile for update-updmap | |
128 | dh_installtex map=Map,lm.map | |
129 | dh_installtex -p $(PKGFONTS) | |
169 | 130 | |
170 | $(INSTALL_FILE) fonts/enc/dvips/lm/*.enc \ | |
171 | "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/enc/dvips/lm" | |
172 | ||
173 | # Install the specific map files because the monolithic lm.map is | |
174 | # incomplete in LM 1.00. | |
175 | find fonts/map/dvips/lm \ | |
176 | \( -name "*.map" -not -name lm.map -not -name "lm-rep-*.map" \) \ | |
177 | -print0 | xargs -0r $(INSTALL_FILE) \ | |
178 | -t "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/map/dvips/lm" | |
179 | ||
180 | # Declare these map files in lmodern.cfg | |
181 | { sed -nf debian/sed_scripts/extract-start \ | |
182 | "debian/lmodern.cfg.in" && \ | |
183 | find fonts/map/dvips/lm \ | |
184 | \( -name "*.map" -not -name lm.map -not -name "lm-rep-*.map" \) \ | |
185 | -print | while read f; do echo "Map $$(basename "$$f")"; done \ | |
186 | | sort && \ | |
187 | sed -nf debian/sed_scripts/extract-end \ | |
188 | "debian/lmodern.cfg.in"; \ | |
189 | } > "debian/lmodern.cfg" | |
190 | ||
191 | # Also install the map files for replacement fonts for CS, CM, PL and | |
192 | # VN. | |
193 | $(INSTALL_FILE) fonts/map/dvips/lm/lm-rep-*.map \ | |
194 | "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/map/dvips/lm" | |
195 | ||
196 | # install cork-lm.map which helps xdvi/dvips/etc for old dvi files | |
197 | # with old file names. This file is not disabled by default | |
198 | # in lmodern.cfg. | |
199 | $(INSTALL_FILE) debian/cork-lm.map \ | |
200 | "$(PKG_INSTALL_DIR)/usr/share/texmf/fonts/map/dvips/lm" | |
201 | ||
202 | for file in tex/latex/lm/*.fd tex/latex/lm/*.sty; do \ | |
203 | $(INSTALL_FILE) "$$file" \ | |
204 | "$(PKG_INSTALL_DIR)/usr/share/texmf/tex/latex/lm"; \ | |
205 | done | |
206 | ||
207 | for file in doc/fonts/lm/*; do \ | |
208 | $(INSTALL_FILE) "$$file" \ | |
209 | "$(PKG_INSTALL_DIR)/usr/share/doc/texmf/fonts/lm"; \ | |
210 | done | |
211 | ||
212 | # Symlink the useful documentation files from | |
213 | # /usr/share/doc/texmf/fonts/lm/ to /usr/share/doc/lmodern/. | |
214 | { echo "usr/share/doc/texmf/fonts/lm/README-Latin-Modern.TXT" \ | |
215 | "usr/share/doc/lmodern/README"; \ | |
216 | echo "usr/share/doc/texmf/fonts/lm/MANIFEST-Latin-Modern.TXT" \ | |
217 | "usr/share/doc/lmodern/MANIFEST.txt"; \ | |
218 | echo "usr/share/doc/texmf/fonts/lm/lm-hist.txt" \ | |
219 | "usr/share/doc/lmodern/lm-hist.txt"; \ | |
220 | echo "usr/share/doc/texmf/fonts/lm/lm-info.pdf" \ | |
221 | "usr/share/doc/lmodern/lm-info.pdf"; \ | |
222 | } >> "debian/$(PKG).links" | |
223 | ||
224 | # Install the standard conffile for update-updmap | |
225 | dh_installtex --priority=10 mapfile=debian/lmodern.cfg | |
226 | ||
227 | dh_link \ | |
228 | etc/fonts/conf.avail/65-$(PKG).conf \ | |
229 | etc/fonts/conf.d/65-$(PKG).conf | |
230 | ||
231 | ||
232 | dh_installdocs debian/NEWS.Debian | |
233 | ||
234 | $(INSTALL_FILE) debian/font-substitution/* \ | |
235 | "$(PKG_INSTALL_DIR)/usr/share/doc/$(PKG)/font-substitution" | |
236 | ||
131 | dh_link | |
132 | dh_installdocs | |
237 | 133 | dh_installchangelogs |
238 | ||
239 | $(INSTALL_FILE) debian/$(PKG).lintian-overrides \ | |
240 | "$(PKG_INSTALL_DIR)/usr/share/lintian/overrides/$(PKG)" | |
241 | ||
134 | dh_lintian | |
242 | 135 | dh_compress -X.pdf |
243 | 136 | dh_fixperms |
244 | 137 | dh_installdeb |
0 | lmodern source: no-debian-copyright |