Bug 2716

Summary: libxft is calculatint wrong width of CJK fonts
Product: xorg Reporter: Funda Wang <fundawang>
Component: Lib/XftAssignee: Keith Packard <keithp>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.