On Fri, 22 Mar 2019, Mark Wigzell via blfs-dev wrote:

The doc talks about installing DejaVu so one can have some fonts for xterm,
however xterm builds without support for FreeType. I added
"--with-freetype-config=freetype-config" to the configure which supplied the
"freetype2" lib, but the "Xft" lib was not used, because of a confusion of
configuration around this issue, which was very difficult to understand. 
I was unable to pass "--with-freetype-libs" with "-lXft" or with "no" or any
other value successfully. 
Finally I edited the "configure" script and forced the "-lXft" value into an
appropriate variable. Then xterm finally built with "-fa" option, and I was
able to use DejaVu fonts.
I believe some kind of modification to the doc to tell people how to
actually make an xterm use DejaVu fonts is in order?



In what order are you building Freetype and the Xorg Libraries?
Here's what I have:

Freetype (first pass) --> Fontconfig --> Xorg Libraries... (bunch of
others)... --> Harfbuff --> Freetype (second pass)

Looking at my logs for Xterm:

[...]
checking for FreeType config... /usr/bin/pkg-config xft
checking for /usr/bin/pkg-config cflags... -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/uuid
checking for /usr/bin/pkg-config libs...  -lXft
checking if we can link with FreeType libraries... yes
[...]

Freetype with Xft would seem to be required.  AFAIK Xft is a Xorg
Library.  Did you install Freetype before the Xorg Libraries?  Also, it
might not hurt to build Freetype again (after installing Harfbuzz -- as
recommended in BLFS).

Cheers,

   -- Ryan
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to