[Pkg-fonts-devel] Bug#657295: xfonts-wqy: wrong ascents and descents
Lingzhu Xiang
xianglingzhu at gmail.com
Wed Jan 25 11:22:03 UTC 2012
Package: xfonts-wqy
Version: 0.9.9-4
Severity: important
Tags: upstream patch
FONT_ASCENT + FONT_DESCENT > PIXEL_SIZE (font height) in all sizes of
WenQuanYi Bitmap Song. This results in unusable fonts with urxvt. For example,
urxvt -fn '8x16,-wenquanyi-wenquanyi bitmap song-medium-r-normal--16-160-75-75-p-80-iso10646-1'
and Chinese characters get rendered as tiny garbage. urxvt has more robust
handling with Xft, but still, with
urxvt -fn '6x12,xft:WenQuanYi Bitmap Song:pixelsize=12'
the bottom pixels of Chinese characters get eaten.
The attached patch contains appropriate ascent and descent values. FYI, I used
this script to extract ascent and descent values for statistics (bdflib from
pypi).
#!/usr/bin/python
import sys
from bdflib import reader
bdf = reader.read_bdf(open(sys.argv[1]))
for glyph in bdf.glyphs:
ascent = glyph.get_ascent()
descent = glyph.get_descent()
print ascent, descent, ascent + descent
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xfonts-wqy depends on:
ii debconf [debconf-2.0] 1.5.41
ii xfonts-utils 1:7.6+1
xfonts-wqy recommends no packages.
Versions of packages xfonts-wqy suggests:
ii xserver-xorg [xserver] 1:7.6+10
ii xvfb [xserver] 2:1.11.3.901-2
Demo program:
ii rxvt-unicode 9.14-1
-- debconf information:
xfonts-wqy/enable_wqy: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ascent-descent.patch
Type: text/x-diff
Size: 3641 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20120125/65248797/attachment.patch>
More information about the Pkg-fonts-devel
mailing list