On 2018-12-15 21:38-0000 António Rodrigues Tomé wrote:

Hi all,

This seems to be a truetype font issue my plots were  made without true
type support. I noticed the difference between Alan plots and mine were not
only in position and orientation but also in fonts used.
I have a lot of true types fonts installed but for strange reason none is
selected.

Hi António:

PLplot's lack of access to system fonts on your platform is indeed a
most peculiar result.

You probably know this already, but just to remind you, PLplot users
of TTF fonts can specify only generic fonts such as "sans" and
"serif", and then it is up to device driver to find for a given UCS4
glyph request, the best system glyph that belongs to the generic
family.  For example, the cairo device driver uses a subset of the
GTK+ suite of libraries to create plots, and that suite uses
fontconfig to find the appropriate system glyph.  And the qt device
driver uses a subset of the QT suite of libraries to create plots, and
that suite also uses fontconfig in the same way, but if fontconfig is
not available it falls back to an emergency way of selecting glyphs
that doesn't give very good results.

So from your bad font results my guess is you either don't have
fontconfig installed at all or it has a broken configuration.

For what it is worth, here is a list of all packages I have installed
that have anything to do with fonts.

-------------------------------------------8<-------------------------------------

irwin@merlin> dpkg --list |grep -i font
ii  aglfn                                         1.7-3                        
all          Adobe Glyph List For New Fonts
ii  console-setup                                 1.187                        
all          console font and keymap setup program
ii  fontconfig                                    2.13.1-2                     
amd64        generic font configuration library - support binaries
ii  fontconfig-config                             2.13.1-2                     
all          generic font configuration library - configuration
ii  fonts-adf-oldania                             0.20110505-3                 
all          Oldania font of the Arkandis Digital Foundry
ii  fonts-dejavu                                  2.37-1                       
all          metapackage to pull in fonts-dejavu-core and fonts-dejavu-extra
ii  fonts-dejavu-core                             2.37-1                       
all          Vera font family derivate with additional characters
ii  fonts-dejavu-extra                            2.37-1                       
all          Vera font family derivate with additional characters (extra 
variants)
ii  fonts-droid-fallback                          1:6.0.1r16-1.1               
all          handheld device font with extensive style and language support 
(fallback)
ii  fonts-font-awesome                            5.0.10+really4.7.0~dfsg-1    
all          iconic font designed for use with Twitter Bootstrap
ii  fonts-freefont-otf                            20120503-8                   
all          Freefont Serif, Sans and Mono OpenType fonts
ii  fonts-freefont-ttf                            20120503-8                   
all          Freefont Serif, Sans and Mono Truetype fonts
ii  fonts-gfs-baskerville                         1.1-5                        
all          ancient Greek font revival
ii  fonts-gfs-porson                              1.1-6                        
all          Greek font (Porson revival)
ii  fonts-hack                                    3.003-1                      
all          Typeface designed for source code
ii  fonts-lato                                    2.0-2                        
all          sans-serif typeface family font
ii  fonts-lmodern                                 2.004.5-5                    
all          OpenType fonts based on Computer Modern
ii  fonts-noto                                    20171026-2                   
all          metapackage to pull in all Noto fonts
ii  fonts-noto-cjk                                1:20170601+repack1-3         all        
  "No Tofu" font families with large Unicode coverage (CJK regular and bold)
ii  fonts-noto-hinted                             20171026-2                   all        
  "No Tofu" font families with large Unicode coverage (hinted)
ii  fonts-noto-mono                               20171026-2                   all        
  "No Tofu" monospaced font family with large Unicode coverage
ii  fonts-noto-unhinted                           20171026-2                   all        
  "No Tofu" font families with large Unicode coverage (unhinted)
ii  fonts-roboto-slab                             1.100263+20170512-1          
all          Google's signature family of fonts (slab)
ii  fonts-texgyre                                 20180621-2                   
all          OpenType fonts based on URW Fonts
ii  freetype2-doc                                 2.9.1-3                      
all          FreeType 2 font engine, development documentation
ii  gsfonts                                       1:8.11+urwcyr1.0.7~pre44-4.4 
all          Fonts for the Ghostscript interpreter(s)
ii  gucharmap                                     1:11.0.3-1                   
amd64        Unicode character picker and font browser
ii  kbd                                           2.0.4-4                      
amd64        Linux console font and keytable utilities
ii  libfont-afm-perl                              1.20-2                       
all          Font::AFM - Interface to Adobe Font Metrics files
ii  libfontconfig1:amd64                          2.13.1-2                     
amd64        generic font configuration library - runtime
ii  libfontconfig1-dev:amd64                      2.13.1-2                     
amd64        generic font configuration library - development
ii  libfontenc1:amd64                             1:1.1.3-1+b2                 
amd64        X11 font encoding library
ii  libfreetype6:amd64                            2.9.1-3                      
amd64        FreeType 2 font engine, shared library files
ii  libfreetype6-dev:amd64                        2.9.1-3                      
amd64        FreeType 2 font engine, development files
ii  libgraphite2-3:amd64                          1.3.12-1                     
amd64        Font rendering engine for Complex Scripts -- library
ii  libkfontinst5                                 4:5.14.3-1                   
amd64        Tools and widgets for the desktop library
ii  libkfontinstui5                               4:5.14.3-1                   
amd64        Tools and widgets for the desktop library
ii  libotf0:amd64                                 0.9.13-4                     
amd64        Library for handling OpenType Font - runtime
ii  libsdl-ttf2.0-0:amd64                         2.0.11-5                     
amd64        TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii  libsdl2-ttf-2.0-0:amd64                       2.0.14+dfsg1-3               
amd64        TrueType Font library for Simple DirectMedia Layer 2, libraries
ii  libwoff1:amd64                                1.0.2-1                      
amd64        library for converting fonts to WOFF 2.0
ii  libxfont2:amd64                               1:2.0.3-1                    
amd64        X11 font rasterisation library
ii  libxft-dev:amd64                              2.3.2-2                      
amd64        FreeType-based font drawing library for X (development files)
ii  libxft2:amd64                                 2.3.2-2                      
amd64        FreeType-based font drawing library for X
ii  lmodern                                       2.004.5-5                    
all          scalable PostScript and OpenType fonts based on Computer Modern
ii  t1utils                                       1.41-2                       
amd64        Collection of simple Type 1 font manipulation programs
ii  tex-gyre                                      20180621-2                   
all          scalable PostScript and OpenType fonts based on URW Fonts
ii  texlive-fonts-recommended                     2018.20181116-1              
all          TeX Live: Recommended fonts
ii  timgm6mb-soundfont                            1.3-2                        
all          TimGM6mb SoundFont from MuseScore 1.3
ii  xfonts-100dpi                                 1:1.0.4+nmu1                 
all          100 dpi fonts for X
ii  xfonts-75dpi                                  1:1.0.4+nmu1                 
all          75 dpi fonts for X
ii  xfonts-base                                   1:1.0.4+nmu1                 
all          standard fonts for X
ii  xfonts-encodings                              1:1.0.4-2                    
all          Encodings for X.Org fonts
ii  xfonts-scalable                               1:1.0.3-1.1                  
all          scalable fonts for X
ii  xfonts-utils                                  1:7.7+6                      
amd64        X Window System font utility programs

-------------------------------------------8<-------------------------------------

I find gucharmap (a GTK+ application) extraordinarily helpful in
figuring out which of the system fonts that fontconfig will select for
*any* unicode glyph.  I highly recommend that you install that package
and use it since it should be able to quickly find out independent of
PLplot if fontconfig is working properly on your system.

Alan
__________________________
Alan W. Irwin

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to