Bug 2716 - libxft is calculatint wrong width of CJK fonts
Summary: libxft is calculatint wrong width of CJK fonts
Status: CLOSED DUPLICATE of bug 2715
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xft (show other bugs)
Version: unspecified
Hardware: x86 (IA32) All
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-12 16:06 UTC by Funda Wang
Modified: 2011-10-15 17:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Funda Wang 2005-03-12 16:06:32 UTC
Currently, libxft is using font->public.max_advance_width to get the width of 
glyphs. But this is not the case in CJK environments. CJK fonts often include 
both full-width and half-width glyphs, while those glyphs are using different 
width of course. public.max_advance_width makes all the half-width glyphs become 
wider.
Comment 1 Funda Wang 2005-03-12 16:09:06 UTC
Please do not use font->public.max_advance_width, try
glyphslot->metrics.vertAdvance and glyphslot->metrics.horiAdvance instead.
Comment 2 Funda Wang 2005-03-18 14:09:02 UTC

*** This bug has been marked as a duplicate of 2715 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.