This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: font encodings dirs ?


On 17/04/2016 21:01, Yaakov Selkowitz wrote:
On 2016-04-17 13:26, Marco Atzeri wrote:
Most of the postinstall font scripts are referring to
   /usr/share/fonts/encodings
   /usr/share/fonts/encodings/large

"Most"?


just fooled by the old postinstall files (.done)

$ cat plotutils.sh.done
/usr/bin/rm -f /usr/share/fonts/misc/encodings.dir
/usr/share/fonts/misc/fonts.{dir,scale}
/usr/bin/mkfontscale /usr/share/fonts/misc || /usr/bin/rm -f
/usr/share/fonts/misc/fonts.scale
/usr/bin/mkfontdir -e /usr/share/fonts/encodings -e
/usr/share/fonts/encodings/large /usr/share/fonts/misc || /usr/bin/rm -f
/usr/share/fonts/misc/{encodings,fonts}.dir
/usr/bin/fc-cache -f /usr/share/fonts/misc

but from what I see no package includes such directories, so all the
   /usr/bin/mkfontdir -e /usr/share/fonts/encodings ..
are failing by default.

Is the expected behaviour ?

Font installation was completely overhauled in cygport 0.21.0 to no
longer need these postinstall snippets, and all the standalone fonts
packages (which are almost all mine) were rebuilt.  This and x3270 would
seem to be the only ones left.

I rebuilt plotutils, and now there is no postinstall script,
however it seems the tekfont*.pcf fonts are not recognized
by fontconfig.

I also tried to uncompress them but it makes no difference

$ cd /usr/share/fonts/misc

$ file *
fonts.dir:       ASCII text
fonts.scale:     ASCII text
tekfont0.pcf:    X11 Portable Compiled Font data, LSB first
tekfont0.pcf.gz: gzip compressed data, was "tekfont0.pcf", last modified: Mon Apr 18 08:53:10 2016, from Unix
tekfont1.pcf:    cd , LSB first
tekfont1.pcf.gz: gzip compressed data, was "tekfont1.pcf", last modified: Mon Apr 18 08:53:11 2016, from Unix
tekfont2.pcf:    X11 Portable Compiled Font data, LSB first
tekfont2.pcf.gz: gzip compressed data, was "tekfont2.pcf", last modified: Mon Apr 18 08:53:11 2016, from Unix
tekfont3.pcf:    X11 Portable Compiled Font data, LSB first
tekfont3.pcf.gz: gzip compressed data, was "tekfont3.pcf", last modified: Mon Apr 18 08:53:11 2016, from Unix


$ /usr/libexec/fc-cache-1 -r -s -v
/usr/share/fonts: caching, new cache contents: 0 fonts, 9 dirs
[cut]
/usr/share/fonts/misc: caching, new cache contents: 0 fonts, 0 dirs
[cut]
/var/cache/fontconfig: cleaning cache directory
/usr/libexec/fc-cache-1: succeeded

Instead
$ /usr/bin/mkfontdir  /usr/share/fonts/misc
creates the expected old font info:

$ cat fonts.dir
4
tekfont0.pcf.gz tekfont0
tekfont1.pcf.gz tekfont1
tekfont2.pcf.gz tekfont2
tekfont3.pcf.gz tekfont3

How should I manage the postintall for this font ?


The new package is available here:
http://matzeri.altervista.org/x86/plotutils/
http://matzeri.altervista.org/x86_64/plotutils/


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]