ALT Linux Bugzilla
– Attachment 387 Details for
Bug 3990
Providing TFM metrics should increase usability of CM-SUPER fonts.
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Spec file patch to autogenerate TFMs in build section
cm-super-tfm-autogen-spec.patch (text/plain), 1.54 KB, created by
Yurix
on 2004-04-19 14:35:23 MSD
(
hide
)
Description:
Spec file patch to autogenerate TFMs in build section
Filename:
MIME Type:
Creator:
Yurix
Created:
2004-04-19 14:35:23 MSD
Size:
1.54 KB
patch
obsolete
>--- cm-super-fonts.spec 2002-11-27 22:17:15 +0300 >+++ cm-super-fonts.spec-new 2004-04-19 14:28:09 +0400 >@@ -119,10 +119,28 @@ > > %prep > %setup -q -n cm-super >+%__mkdir tfm >+gunzip afm/*.afm.gz >+ >+%build >+for enc in `ls dvips/ |sed -n -e "s/.*-\(.*\)\.enc$/\1/p"`; do >+ for afm in afm/*.afm; do >+ psfont=`grep "<$(echo "$afm"| sed 's@.*/@@; s@\..*$@@;')" dvips/cm-super-$enc.map|awk '{print$1}'` >+ if [ "$psfont" = "" ]; then >+ echo "Font map for $afm does not exist in encoding $enc" >>tfm-autogen.log >+ else >+ afm2tfm $afm -T dvips/cm-super-$enc.enc -v $psfont $psfont.tfm >+ pltotf $psfont.vpl $psfont.tfm >+ mv $psfont.tfm tfm/$psfont.tfm >+ rm -f $psfont.vpl >+ fi >+ done >+done > > %install > # Directories for cm-super fonts > %__mkdir -p %buildroot/%_datadir/texmf/fonts/{type1,afm}/public >+%__mkdir -p %buildroot/%_datadir/texmf/fonts/tfm/public/cm-super > %__mkdir -p %buildroot/%_datadir/texmf/dvips/{config,base} > %__mkdir -p %buildroot/%type1fontsdir/afms > %__mkdir -p %buildroot/%_sysconfdir/tex-fonts.d >@@ -130,8 +148,8 @@ > # Install cm-super fonts > %__cp pfb/* %buildroot%type1fontsdir > %__cp afm/* %buildroot%type1fontsdir/afms/ >+%__cp tfm/* %buildroot/%_datadir/texmf/fonts/tfm/public/cm-super > pushd %buildroot%type1fontsdir >- gunzip afms/*.gz > cd afms > for i in *.afm ; do > %__ln_s afms/$i %buildroot%type1fontsdir/$i >@@ -192,6 +210,7 @@ > %files tex > %_datadir/texmf/dvips/config/* > %_datadir/texmf/fonts/type1/public/cm-super >+%_datadir/texmf/fonts/tfm/public/cm-super > %_sysconfdir/tex-fonts.d/cm-super.cfg > > %changelog
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3990
:
386
| 387