[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/font pgfont.cpp,1.3.2.1,1.3.2.2
From: |
Teunis Peters <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/font pgfont.cpp,1.3.2.1,1.3.2.2 |
Date: |
Thu, 20 Jun 2002 03:05:02 -0400 |
Update of /cvsroot/paragui/paragui/src/font
In directory subversions:/tmp/cvs-serv17814/src/font
Modified Files:
Tag: devel-opengl
pgfont.cpp
Log Message:
update to pgfont for workaround for broken freetype (FT_Get_Char_Index may
sometimes return 0 in fonts that normally work)
removed some unnecessary debug code in draw.cpp
Index: pgfont.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/font/pgfont.cpp,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -r1.3.2.1 -r1.3.2.2
*** pgfont.cpp 18 Jun 2002 22:40:38 -0000 1.3.2.1
--- pgfont.cpp 20 Jun 2002 07:05:00 -0000 1.3.2.2
***************
*** 505,508 ****
--- 505,509 ----
//Get glyph index
glyph_index = FT_Get_Char_Index(Face, *c);
+ if ( ! glyph_index ) glyph_index = *c - 29; /* FIXME bug
workaround */
//Make space between characters == kerneling
***************
*** 603,606 ****
--- 604,608 ----
//Get glyph index
glyph_index = FT_Get_Char_Index(Face, *c);
+ if ( ! glyph_index ) glyph_index = *c - 29; /* FIXME bug
workaround */
//Make space between characters == kerneling
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/font pgfont.cpp,1.3.2.1,1.3.2.2,
Teunis Peters <address@hidden> <=