a problem with vera/dejavu sans mono fonts

a problem with vera/dejavu sans mono fonts

Post by Giacomo Bo » Sat, 24 Jun 2006 15:50:30


Bob Tennent < XXXX@XXXXX.COM > writes:



that's what i tried to communicate from minute 0


i think that X can render TrueType fonts otherwise, and i think also
that xterm drops a warning line in the starting shell whenever it
cannot find a font, no complaints in my case...


so i have verified that, modulo unaliasing, the glyps used are the
same in step 1 and 2 above, i can email two small xpm's to
interested parties (also, i have used vera/dajavu with
not-xft-enabled apps for years...)

may i add that, using vera mono sans as X's default font, i see
hollow boxes in place of spaces in *every* not-xft-enabled apps?


thank you for your time, ciao
g
--
[...] mi ricorda il peggior stile catto-cattolico. -- DR, in IFQ
 
 
 

a problem with vera/dejavu sans mono fonts

Post by Giacomo Bo » Sat, 24 Jun 2006 18:59:20

Bob Tennent < XXXX@XXXXX.COM > writes:




The same application (xterm) is messing up and it isn't...



Step 1: i give these three shell commands in a xterm,

$ xrdb -merge
XTerm*faceName: mono-11
XTerm*font: -*-bitstream vera sans mono-medium-r-*-*-*-130-100-100-*-*-iso8859-1
$ fc-match mono-11
Bitstream-Vera-Sans-Mono.ttf: "Bitstream Vera Sans Mono" "Roman"
$ xterm &

a) the new xterm uses Vera Sans Mono *antialiased*,
b) the "True Type Fonts" menu entry, in the popup menu "VT Fonts"
that's usually bound to C-Button3, is checked

Step 2: i uncheck the "True Type Fonts" menu entry in the new xterm,

a) Vera Sans Mono is no more antialiased,
b) i have the hollow rectangular boxes everywhere i previously had
spaces

if it helps, i can email two little .xpm files (13k and 14k) to
interested parties

all the boring details on my system:

$ uname -a
Linux boffi95 2.6.16-2-686-smp #2 SMP Mon May 22 23:17:21 UTC 2006 i686 GNU/Linux
$ X -version

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.12-1-686 i686
Current Operating System: Linux boffi95 2.6.16-2-686-smp #2 SMP Mon May 22 23:17:21 UTC 2006 i686
Build Date: 16 March 2006
Before reporting problems, check http://www.yqcomputer.com/
to make sure that you have the latest version.
Module Loader present
$ strings /usr/lib/xorg/modules/drivers/nvidia_drv.so | grep nvidia\ id
nvidia id: NVIDIA dlloader X Driver 1.0-8762 Mon May 15 13:08:07 PDT 2006
$ dpkg -l '*fontconfig*' | grep ^ii
ii fontconfig 2.3.2-7 generic font configuration library - support binaries
ii fontconfig-config 2.3.2-7 generic font configuration library - configuration
ii libfontconfig1 2.3.2-7 generic font configuration library - runtime
ii libfontconfig1-dev 2.3.2-7 generic font configuration library - development
$ dpkg -l '*xft*' | grep ^ii
ii libxft-dev 2.1.8.2-8 FreeType-based font drawing library for X (development files)
ii libxft2 2.1.8.2-8 FreeType-based font drawing library for X
$

ciao,
g


--
Israele l'abbiamo fatto noi, e teoricamente starebbe a noi salvaguardarlo.
Ma Israele si comporta come uno stato indipendente, e di quello che
diciamo noi se ne sbatte i coglioni. -- Termy, in IFQ

 
 
 

a problem with vera/dejavu sans mono fonts

Post by Bob Tennen » Sat, 24 Jun 2006 20:40:15


>> > [ when vera is used trough an XLFD description, i see hollow
>> > rectangular bozes in place of spaces]
>
> Step 1: i give these three shell commands in a xterm,
>
> $ xrdb -merge
> XTerm*faceName: mono-11
> XTerm*font: -*-bitstream vera sans mono-medium-r-*-*-*-130-100-100-*-*-iso8859-1
> $ fc-match mono-11
> Bitstream-Vera-Sans-Mono.ttf: "Bitstream Vera Sans Mono" "Roman"
> $ xterm &
>
> a) the new xterm uses Vera Sans Mono *antialiased*,
> b) the "True Type Fonts" menu entry, in the popup menu "VT Fonts"
> that's usually bound to C-Button3, is checked
>
> Step 2: i uncheck the "True Type Fonts" menu entry in the new xterm,
>
> a) Vera Sans Mono is no more antialiased,
> b) i have the hollow rectangular boxes everywhere i previously had
> spaces

If you uncheck "TrueType Fonts", FreeType isn't used to render fonts.
I don't think X can render TrueType fonts otherwise, so I'd guess that
another font is being substituted.
 
 
 

a problem with vera/dejavu sans mono fonts

Post by Bob Tennen » Sun, 25 Jun 2006 02:13:04


> may i add that, using vera mono sans as X's default font, i see
> hollow boxes in place of spaces in *every* not-xft-enabled apps?

The X11R7.1 documentation says:

X11R6.7 came with two TrueType backends. The functionality from the
`X-TrueType' backend has been integrated into the `FreeType' backend
which is designed to transparently support all of the functionality
from the `X-TrueType' backend with the exception of the font encoding
libraries; the `FreeType' backend uses only the fontenc-based encoding
system.

which suggests a font-encoding issue.
 
 
 

a problem with vera/dejavu sans mono fonts

Post by Giacomo Bo » Thu, 13 Jul 2006 21:44:13

Bob Tennent < XXXX@XXXXX.COM > writes:



a font-encoding issue, yes, so i came to think too until today...

today i discovered that changing the XLFD specification, i.e., making
it just a bit more specific, resolved my issue with blanks rendered as
hollow boxes

in particular, here it's what i used
*Font: -*-bitstream vera sans mono-medium-r-*-*-*-110-100-100-*-*-iso8859-1

and what i use now (note the m after 110-100-100)
*Font: -*-bitstream vera sans mono-medium-r-*-*-*-110-100-100-m-*-iso8859-1

may i ask you (you 2PP), is it a bug or feature? and, should it be a bug,
whom i should report it to?

thank you all, ciao
g
--
Sarun'ingenua ma continuo a pensarla come prima, anche se
probabilmente i fatti mi smentiscono. -- Francy, in IHC