Bug 2715

Summary: libxft is calculatint wrong width of CJK fonts
Product: xorg Reporter: Funda Wang <fundawang>
Component: Lib/XftAssignee: Keith Packard <keithp>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: high Keywords: patch
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:
Attachments:
Description Flags
Patch to libxft 2.1.6 none

Description Funda Wang 2005-03-12 16:04:13 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:05:42 UTC
Created attachment 2091 [details] [review]
Patch to libxft 2.1.6

Do not use public.max_advance_width to get the width of certain glyph, use
glyphslot->metrics.vertAdvance and glyphslot->metrics.horiAdvance instead.
Comment 2 Funda Wang 2005-03-18 14:09:02 UTC
*** Bug 2716 has been marked as a duplicate of this bug. ***
Comment 3 Funda Wang 2005-10-17 22:25:16 UTC
How is it going?
Comment 4 Funda Wang 2005-12-11 19:50:50 UTC
Still valid in latest CVS.
Comment 5 Jeremy Huddleston Sequoia 2011-10-10 12:40:26 UTC
If this is still an issue, can you please send your patch to xorg-devel for 
review?
Comment 6 Adam Jackson 2018-06-12 19:08:42 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.

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.