[Bug 217388] New: A small fix for FT_GlyphSlot_Embolden() in order to handle advance correctly.
https://bugzilla.novell.com/show_bug.cgi?id=217388 Summary: A small fix for FT_GlyphSlot_Embolden() in order to handle advance correctly. Product: openSUSE 10.2 Version: Beta 1 plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: mfabian@novell.com ReportedBy: zsu@novell.com QAContact: qa@suse.de CC: wl@gnu.org, david@freetype.org In freetype 2.2.x's FT_GlyphSlot_Embolden(), there is a piece of code: FT_EXPORT_DEF( void ) FT_GlyphSlot_Embolden( FT_GlyphSlot slot ) { .. /* assume the layout is horizontal */ slot->advance.x += xstr; .. } Obviously, this piece of code can't handle vertical layout correctly. Below is a patch to fix this issue: --- src/base/ftsynth.c.old 2006-11-02 19:30:10.000000000 +0800 +++ src/base/ftsynth.c 2006-11-02 19:31:07.000000000 +0800 @@ -137,8 +137,11 @@ return; } - /* assume the layout is horizontal */ - slot->advance.x += xstr; + if (slot->advance.x) + slot->advance.x += xstr; + + if (slot->advance.y) + slot->advance.y += ystr; slot->metrics.width += xstr; slot->metrics.height += ystr; Because for horizontal layout, advance.y is always zero, vice versa. Please check whether it's correct or not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217388 ------- Comment #1 from zsu@novell.com 2006-11-02 09:08 MST ------- Created an attachment (id=103545) --> (https://bugzilla.novell.com/attachment.cgi?id=103545&action=view) the patch. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217388 ------- Comment #2 from zsu@novell.com 2006-11-06 18:55 MST ------- Does anybody can comment on this bug? You may also refer to OpenOffice bug: http://www.openoffice.org/issues/show_bug.cgi?id=71094 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217388 ------- Comment #3 from wl@gnu.org 2006-11-07 02:46 MST ------- Applied to the FreeType CVS, thanks. Werner -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217388 ------- Comment #4 from zsu@novell.com 2006-11-07 06:09 MST ------- Mike, could you please upgrade our freetype2 package to include this fix? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217388 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #5 from mfabian@novell.com 2006-11-07 06:12 MST ------- I just did that a few minutes ago. freetype2 package with the patch applied submitted to STABLE. Closing as FIXED. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=217388 ------- Comment #6 from zsu@novell.com 2006-11-07 06:20 MST ------- Thanks alot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com