[Commit] Xft ChangeLog,1.4,1.5 xftfreetype.c,1.36,1.37
Keith Packard
commit at keithp.com
Fri Sep 5 08:38:12 PDT 2003
Committed by: keithp
Update of /local/src/CVS/Xft
In directory home.keithp.com:/tmp/cvs-serv27372
Modified Files:
ChangeLog xftfreetype.c
Log Message:
* xftfreetype.h: use FT_LOAD_TARGET_LCD/FT_LOAD_TARGET_LCD_V
so that the autohinter will snap stems to pixel boundaries
Index: ChangeLog
===================================================================
RCS file: /local/src/CVS/Xft/ChangeLog,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ChangeLog 6 May 2003 05:39:58 -0000 1.4
+++ ChangeLog 5 Sep 2003 14:38:09 -0000 1.5
@@ -1,3 +1,8 @@
+2003-09-05 07:76 keithp
+
+ * xftfreetype.h: use FT_LOAD_TARGET_LCD/FT_LOAD_TARGET_LCD_V
+ so that the autohinter will snap stems to pixel boundaries
+
2003-05-05 22:37 keithp
* Xft.h, configure.ac: Bump version to 2.1.2
Index: xftfreetype.c
===================================================================
RCS file: /local/src/CVS/Xft/xftfreetype.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- xftfreetype.c 17 May 2003 02:17:55 -0000 1.36
+++ xftfreetype.c 5 Sep 2003 14:38:09 -0000 1.37
@@ -513,6 +513,18 @@
if (!global_advance)
fi->load_flags |= FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH;
+ /* set the LCD target - autohinter will snap stems to integer widths */
+ switch (fi->rgba) {
+ case FC_RGBA_RGB:
+ case FC_RGBA_BGR:
+ fi->load_flags |= FT_LOAD_TARGET_LCD;
+ break;
+ case FC_RGBA_VRGB:
+ case FC_RGBA_VBGR:
+ fi->load_flags |= FT_LOAD_TARGET_LCD_V;
+ break;
+ }
+
/*
* Get requested spacing value
*/
More information about the Commit
mailing list