Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Hi Norbert, Am 30.10.2012 00:25, schrieb Norbert Preining: Ok, I have now added code to all/debian/rules.in, and created a script that does the job. Fine, thanks! One question remains from my side: Isn't there anything else that has to be doneto activate the fonts? No fonts.scale shipping? No dh_foobar call? Am I missing something? The links are enough? No, in order to activate the fonts for fontconfig, it is sufficient to install them into the /usr/share/fonts name space. The fontconfig package claims an interest in this directory and is instantly notified when new fonts are installed, so fontconfig can regenerate its cache. The fonts.scale file is only needed if you want to make the font available to the classic X font server (c.f. xfontsel), but this is not the purpose of my request. To register the fonts.scale files with the X server, a call to dh_installxfonts is needed. This is, however, not necessary for fontconfig. - Fabian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
PS: Norbert, I have seen you added the math flavours of tex-gyre and lmodern to the Debian packages. Thanks for that. But I doubt that these math flavours are of any use for applications outside the TeX ecosystem. Please consider removing their install paths from the fontconfig files again and please do also explicitely keep the Type1 variant out of fontconfig. - Fabian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Hi PS: Norbert, I have seen you added the math flavours of tex-gyre and lmodern to the Debian packages. Thanks for that.i But I doubt that these math flavours are of any use for applications outside the TeX ecosystem. Please consider removing their install paths from the fontconfig files again and please do also explicitely keep the Type1 variant out of fontconfig. Do you have a specific reason? For lmodern the old version of the math otf font was shipped in the lm opentype dir, so it was activated. Some TeX applications use fontconfig to search for fonts (xetex) Libreoffice might get math font support, these fonts are not the normal TeX math fonts, but are more like Cambria Math. It might be very well useful for gimp, libreoffice, inkscape, whatever users!? So unless you have a specific reason, I tend to keep them in there. Norbert -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Am 30.10.2012 09:32, schrieb Norbert Preining: For lmodern the old version of the math otf font was shipped in the lm opentype dir, so it was activated. Some TeX applications use fontconfig to search for fonts (xetex) Libreoffice might get math font support, these fonts are not the normal TeX math fonts, but are more like Cambria Math. Sorry for the fuzz, I didn't know all of this. Please forget abot it. However, I am afraid that both the Type 1 and the Opentype fonts become visible to fontconfig and that the new math fonts end up duplicated with similar but not identical names (just like we had it for e.g. TeX Gyre Termes and TeXGyreTermes). -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Hi again, I just checked myself by rebuilding the packages from GIT (the upstream tags have not yet been pushed!). The new math fonts are only available in OpenType format, so there is no name space clash with the Type 1 fonts. However, I have found dangling symlinks in /etc/fonts/conf.d in the fonts-texgyre package (yay for dynamically generated links!). Everything else looks fine! - Fabian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Am 30.10.2012 10:37, schrieb Fabian Greffrath: However, I have found dangling symlinks in /etc/fonts/conf.d in the fonts-texgyre package (yay for dynamically generated links!). This will help: diff --git a/debian/rules b/debian/rules index b8b40aa..ea13913 100755 --- a/debian/rules +++ b/debian/rules @@ -141,10 +140,10 @@ binary-indep: build-indep usr/share/doc/$(PPP)/README-TeX-Gyre-Termes-Math.txt \ ; ) dh_link -p $(PKGFONTS) \ - etc/fonts/conf.avail/65-$(PKG).conf \ - etc/fonts/conf.d/65-$(PKG).conf \ - etc/fonts/conf.avail/30-$(PKG)-aliases.conf \ - etc/fonts/conf.d/30-$(PKG)-aliases.conf + etc/fonts/conf.avail/65-$(PKGFONTS).conf \ + etc/fonts/conf.d/65-$(PKGFONTS).conf \ + etc/fonts/conf.avail/30-$(PKGFONTS)-aliases.conf \ + etc/fonts/conf.d/30-$(PKGFONTS)-aliases.conf dh_installdocs dh_installchangelogs - Fabian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Hi Fabian, On Di, 30 Okt 2012, Fabian Greffrath wrote: I just checked myself by rebuilding the packages from GIT (the upstream tags have not yet been pushed!). Because it is still in NEW ;-) The new math fonts are only available in OpenType format, so there is no name space clash with the Type 1 fonts. Right. However, I have found dangling symlinks in /etc/fonts/conf.d in the fonts-texgyre package (yay for dynamically generated links!). Thanks for spotting this, typo in rules file. Best wishes Norbert Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 BOTCHERBY The principle by which British roads are signposted. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
On Mi, 31 Okt 2012, Norbert Preining wrote: I just checked myself by rebuilding the packages from GIT (the upstream tags have not yet been pushed!). Because it is still in NEW ;-) Actually, because I forgot to tag it shame on me. ANyway, I uploaded -2 with the links fixed, tagged it and pushed the tags out. Best wishes Norbert Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 CORFE (n.) An object which is almost totally indistinguishable from a newspaper, the one crucial difference being tat it belongs to somebody else and is unaccountably much more interesting that your own - which may otherwise appear to be in all respects identical. Though it is a rule of life that a train or other public place may contain any number of corfes but only one newspaper, it is quite possible to transform your own perfectly ordinary newspaper into a corfe by the simple expedient of letting somebody else read it. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Hi Fabian, On Do, 25 Okt 2012, Fabian Greffrath wrote: My attempt was to concretize the idea to make selected texlive fonts available to fontconfig, as described in the initial bug report. I am Ok, I have now added code to all/debian/rules.in, and created a script that does the job. One question remains from my side: Isn't there anything else that has to be doneto activate the fonts? No fonts.scale shipping? No dh_foobar call? Am I missing something? The links are enough? Best wishes Norbert Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 CHIPPING ONGAR (n.) The disgust and embarrassment (or 'ongar') felt by an observer in the presence of a person festooned with kirbies (q.v.) when they don't know them well enough to tell them to wipe them off, invariably this 'ongar' is accompanied by an involuntary staccato twitching of the leg (or 'chipping') --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Good morning Norbert, Am 25.10.2012 00:50, schrieb Norbert Preining: Are you sure that all the fonts that are in texmf-dist/fonts/type1/{adobe,bitstrea,urw}/*/*.pfb in the texlive-base.orig.tar.gz, now and in future, will be installed into texlive-fonts-recommended? I am not sure. Me neither, my patch merely applies to the current state (i.e. what I got by apt-get source texlive-fonts-recommended, I just used git-diff for the actual patch). I guess it would be better to move this snippet to a later place, and search for for p in debian/texmf-fonts-recommended/usr/share/texlive/texmf-dist... instead. What do you think? Yes, this sounds more future-proof. Concerning the selectin of fonts, did you check: * arkandis * some of the gust/poltawski/ (the 10pt fonts) might be of interest * nowacki/* * ... No, I did just check the fonts in the recommended set. I didn't even bother to check those in the extra set, I assumed they are there for a reason. ;) I guess the list of directories to be checked should actually be managed somewhere outside the rules file, in a file under debian. Yes, this sounds like a cleaner solution. Anyway, what do you think? And I guess I will include something like this in the git packaging. My attempt was to concretize the idea to make selected texlive fonts available to fontconfig, as described in the initial bug report. I am fine with whatever implementation you envision to achieve this goal. My experience with the texlive packages is just too limited to impose my own solution upon them. ;) Cheers, - Fabian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Am 08.10.2012 10:57, schrieb Fabian Greffrath: So it'd be a better idea to symlink all the relevant .pfb and .afm files into /usr/share/fonts/type1 than adding their directories to fontconfig's search pattern, right? I have added a few lines to debian/rules that take all the .pfb files in the adobe, bitstrea and urw directories, checks if a corresponding .afm file exists and than adds symlinks for both files to debian/texlive-fonts-recommended.links. These symlinks point to /usr/share/fonts/type1/texlive-fonts-recommended/, where the fonts can be found by fontconfig. Of course, this directory has to be created in advance, e.g. by means of a debian/texlive-fonts-recommended.dirs file. I have restricted this procedure to the adobe, bitstrea and urw fonts, because I think they are the only ones in the package that add value for non-TeX related applications. I have checked the other fonts as well, but they are either symbol fonts (public/eurosym, public/marvosym, public/wasy) or specialized duplicates of Times (public/txfonts) or Palatino (public/fpl, public/mathpazo, public/pxfonts) or exist only in uppercase (public/rsfs). - Fabian diff --git a/debian/rules.orig b/debian/rules index a7d9a17..e091093 100755 --- a/debian/rules.orig +++ b/debian/rules @@ -47,6 +47,13 @@ install-stamp: build-stamp if [ -r debian/$$i.README ] ; then cat debian/$$i.README debian/$$i.README.Debian ; fi ; \ cat debian/README.Debian debian/$$i.README.Debian ; \ done + for p in texmf-dist/fonts/type1/{adobe,bitstrea,urw}/*/*.pfb ; do \ + a=`echo $$p | sed -e 's/type1\|pfb/afm/g'` ; \ + if [ -e $$p -a -e $$a ] ; then \ + echo usr/share/texlive/$$p usr/share/fonts/type1/texlive-fonts-recommended/`basename $$p` ; \ + echo usr/share/texlive/$$a usr/share/fonts/type1/texlive-fonts-recommended/`basename $$a` ; \ + fi ; \ + done | sort debian/texlive-fonts-recommended.links touch install-stamp binary-arch:
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Hi Fabian, thanks for the patch and idea .. On Mi, 24 Okt 2012, Fabian Greffrath wrote: I have added a few lines to debian/rules that take all the .pfb files in Assume that we go this way, looking at your patch I have some questions: + for p in texmf-dist/fonts/type1/{adobe,bitstrea,urw}/*/*.pfb ; do \ + a=`echo $$p | sed -e 's/type1\|pfb/afm/g'` ; \ + if [ -e $$p -a -e $$a ] ; then \ + echo usr/share/texlive/$$p usr/share/fonts/type1/texlive-fonts-recommended/`basename $$p` ; \ + echo usr/share/texlive/$$a usr/share/fonts/type1/texlive-fonts-recommended/`basename $$a` ; \ + fi ; \ + done | sort debian/texlive-fonts-recommended.links Are you sure that all the fonts that are in texmf-dist/fonts/type1/{adobe,bitstrea,urw}/*/*.pfb in the texlive-base.orig.tar.gz, now and in future, will be installed into texlive-fonts-recommended? I am not sure. I guess it would be better to move this snippet to a later place, and search for for p in debian/texmf-fonts-recommended/usr/share/texlive/texmf-dist... instead. What do you think? Concerning the selectin of fonts, did you check: * arkandis * some of the gust/poltawski/ (the 10pt fonts) might be of interest * nowacki/* * ... I guess the list of directories to be checked should actually be managed somewhere outside the rules file, in a file under debian. Anyway, what do you think? And I guess I will include something like this in the git packaging. Best wishes Norbert Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 WATH (n.) The rage of Roy Jenkins. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
Am 08.10.2012 02:40, schrieb Norbert Preining: afm files provides the metrics for the characters, without them the display looks bad. The X server (at least at some point int the past) searched for the afm files in the same directory as the pfb/pfa files. So it'd be a better idea to symlink all the relevant .pfb and .afm files into /usr/share/fonts/type1 than adding their directories to fontconfig's search pattern, right? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
On second thought, this approach will miss the .afm files. I am not yet sure what to do with them, as some are duplicated in adobe/ and urw/ directories, respectively. What exactly is their purpose, are they required at all? - Fabian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#689837: Acknowledgement (Please register the psnfss fonts with fontconfig)
On So, 07 Okt 2012, Fabian Greffrath wrote: On second thought, this approach will miss the .afm files. I am not yet sure what to do with them, as some are duplicated in adobe/ and urw/ directories, respectively. What exactly is their purpose, are they required at all? afm files provides the metrics for the characters, without them the display looks bad. The X server (at least at some point int the past) searched for the afm files in the same directory as the pfb/pfa files. Best wishes Norbert Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 Yes, it's the right planet, all right, he said again. Right planet, wrong universe. --- Douglas Adams, The Hitchhikers Guide to the Galaxy -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org