[Libreoffice-commits] core.git: vcl/generic
Khaled Hosny
khaledhosny at eglug.org
Mon Nov 23 21:16:06 PST 2015
vcl/generic/glyphs/gcach_ftyp.cxx | 23 -----------------------
1 file changed, 23 deletions(-)
New commits:
commit aefcb307c246275fa9001996bd815c73b4ac79b3
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Tue Nov 24 09:13:48 2015 +0400
Remove recently unused code
Change-Id: I47a28fa127bd84527c0d6d96a7d06a5932b29305
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 51bb542..cd86454 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -64,28 +64,6 @@
#include <sys/mman.h>
#include "fontmanager.hxx"
-// the gamma table makes artificial bold look better for CJK glyphs
-static unsigned char aGammaTable[257];
-
-static void InitGammaTable()
-{
- static const int M_MAX = 255;
- static const int M_X = 128;
- static const int M_Y = 208;
-
- int x, a;
- for( x = 0; x < 256; x++)
- {
- if ( x <= M_X )
- a = ( x * M_Y + M_X / 2) / M_X;
- else
- a = M_Y + ( ( x - M_X ) * ( M_MAX - M_Y ) +
- ( M_MAX - M_X ) / 2 ) / ( M_MAX - M_X );
-
- aGammaTable[x] = (unsigned char)a;
- }
-}
-
static FT_Library aLibFT = nullptr;
// enable linking with old FT versions
@@ -373,7 +351,6 @@ FreetypeManager::FreetypeManager()
if( pEnv )
nDefaultPrioAutoHint = pEnv[0] - '0';
- InitGammaTable();
vclFontFileList::get();
}
More information about the Libreoffice-commits
mailing list