]> git.pld-linux.org Git - packages/libreoffice.git/blame - openoffice-gui-ft-set-hint.patch
- use pointSize()
[packages/libreoffice.git] / openoffice-gui-ft-set-hint.patch
CommitLineData
5cc47c02 1Index: vcl/source/glyphs/gcach_ftyp.cxx
2===================================================================
3RCS file: /cvs/gsl/vcl/source/glyphs/gcach_ftyp.cxx,v
4retrieving revision 1.91
5diff -u -p -u -r1.91 gcach_ftyp.cxx
6--- vcl/source/glyphs/gcach_ftyp.cxx 28 May 2003 12:31:48 -0000 1.91
7+++ vcl/source/glyphs/gcach_ftyp.cxx 4 Jun 2003 11:04:24 -0000
8@@ -904,7 +911,7 @@ void FreetypeServerFont::InitGlyphData(
9 int nGlyphFlags;
10 SplitGlyphFlags( *this, nGlyphIndex, nGlyphFlags );
11
12- int nLoadFlags = mnLoadFlags;
13+ int nLoadFlags = mnLoadFlags | FT_LOAD_TARGET_LIGHT;
14 if( nGlyphFlags & GF_UNHINTED )
15 nLoadFlags |= FT_LOAD_NO_HINTING;
16
17@@ -981,7 +988,7 @@ bool FreetypeServerFont::GetGlyphBitmap1
18 int nGlyphFlags;
19 SplitGlyphFlags( *this, nGlyphIndex, nGlyphFlags );
20
21- FT_Int nLoadFlags = mnLoadFlags;
22+ FT_Int nLoadFlags = mnLoadFlags | FT_LOAD_TARGET_LIGHT;
23
24 #if (FTVERSION >= 2002)
25 // for 0/90/180/270 degree fonts enable autohinting even if not advisable
26@@ -1072,7 +1079,7 @@ bool FreetypeServerFont::GetGlyphBitmap8
27 int nGlyphFlags;
28 SplitGlyphFlags( *this, nGlyphIndex, nGlyphFlags );
29
30- FT_Int nLoadFlags = mnLoadFlags;
31+ FT_Int nLoadFlags = mnLoadFlags | FT_LOAD_TARGET_LIGHT;
32
33 #if (FTVERSION <= 2004) && !defined(TT_CONFIG_OPTION_BYTECODE_INTERPRETER)
34 // autohinting in FT<=2.0.4 makes antialiased glyphs look worse
35@@ -1600,7 +1607,7 @@ bool FreetypeServerFont::GetGlyphOutline
36 int nGlyphFlags;
37 SplitGlyphFlags( *this, nGlyphIndex, nGlyphFlags );
38
39- FT_Int nLoadFlags = FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP;
40+ FT_Int nLoadFlags = FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP | FT_LOAD_TARGET_LIGHT;
41 FT_Error rc = FT_Load_Glyph( maFaceFT, nGlyphIndex, nLoadFlags );
42 if( rc != FT_Err_Ok )
43 return false;
This page took 0.042324 seconds and 4 git commands to generate.