[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] XFree86 4.3.0 underlining with mozilla



Description of the problem and patch here:
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2003-July/009690.html

I've verified that it works in Mozilla Firebird (same patch as in the
above URL):

diff -x changelog -ruN xfree86-4.3.0.orig/build-tree/xc/lib/font/FreeType/ftfuncs.c xfree86-4.3.0.new/build-tree/xc/lib/font/FreeType/ftfuncs.c
--- xfree86-4.3.0.orig/build-tree/xc/lib/font/FreeType/ftfuncs.c	2003-02-12 19:01:45.000000000 -0800
+++ xfree86-4.3.0.new/build-tree/xc/lib/font/FreeType/ftfuncs.c	2003-10-03 19:46:25.000000000 -0700
@@ -959,11 +959,11 @@
         int underlinePosition, underlineThickness;
 
         if(post) {
-            underlinePosition = TRANSFORM_FUNITS_Y(post->underlinePosition);
+            underlinePosition = TRANSFORM_FUNITS_Y(-post->underlinePosition);
             underlineThickness = TRANSFORM_FUNITS_Y(post->underlineThickness);
         } else {
             underlinePosition = 
-                TRANSFORM_FUNITS_Y(t1info->underline_position);
+                TRANSFORM_FUNITS_Y(-t1info->underline_position);
             underlineThickness = 
                 TRANSFORM_FUNITS_Y(t1info->underline_thickness);
         }

-- 
Eric Wong



Reply to: