Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2008 19:43:20 GMT
From:      Christoph Mallon <christoph.mallon@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/125883: x11-fonts/xorg-fonts-cyrillic is installed, but fonts are not available
Message-ID:  <200807221943.m6MJhKQj093080@www.freebsd.org>
Resent-Message-ID: <200807221950.m6MJo2VX039820@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125883
>Category:       ports
>Synopsis:       x11-fonts/xorg-fonts-cyrillic is installed, but fonts are not available
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 22 19:50:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Mallon
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD tron.homeunix.org 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Jul  5 19:55:33 CEST 2008     root@tron.homeunix.org:/usr/obj/usr/src/sys/KERNEL  i386
>Description:
I installed the meta-port x11-fonts/xorg-fonts-cyrillic, but no cyrillic fonts are available in xterm.
fc-cache is convinced, that there are no cyrillic fonts:
%fc-cache -fv
/usr/local/lib/X11/fonts: caching, new cache contents: 0 fonts, 11 dirs
/usr/local/lib/X11/fonts/100dpi: caching, new cache contents: 398 fonts, 0 dirs
[...]
/usr/local/lib/X11/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs
[...]

Of course all the 82 font files are in the cyrillic directory directory.

I tried building and debugging fontconfig with confusing results. If I deactivate HAVE_FT_GET_BDF_PROPERTY when building (i.e. setting it to 0 in config.h), the so modified fc-cache finds the cyrillic fonts, but they still do not work:
%./fc-cache -vf
/usr/local/lib/X11/fonts: caching, new cache contents: 0 fonts, 11 dirs
/usr/local/lib/X11/fonts/100dpi: caching, new cache contents: 1894 fonts, 0 dirs
[...]
/usr/local/lib/X11/fonts/cyrillic: caching, new cache contents: 82 fonts, 0 dirs
[...]

The vanilla fc-cache bails out in src-fcfreetype.c:1670 trying to get the "PIXEL_SIZE" property, but not finding it, so it discards the font. Though I do not know if this is a hint for the source of the problem or just a red herring. Mind also the /big/ (1500!) difference for 100dpi fonts. The 100dpi directory indeed contains 1894 font files.
>How-To-Repeat:
install x11-fonts/xorg-fonts-cyrillic (usually done via the x11-fonts/xorg-fonts metaport) and try to look at cyrillic text in xterm or look at the output of fc-cache -v
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807221943.m6MJhKQj093080>