Bug 2715 - libxft is calculatint wrong width of CJK fonts
Summary: libxft is calculatint wrong width of CJK fonts
Status: RESOLVED INVALID
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: 2011BRB_Reviewed
Keywords: patch
: 2716 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-12 16:04 UTC by Funda Wang
Modified: 2018-06-12 19:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to libxft 2.1.6 (3.20 KB, patch)
2005-03-12 16:05 UTC, Funda Wang
no flags Details | Splinter Review

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.