summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_font_main.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-05-29 14:43:17 +0000
committerTom Hacohen <tom@stosb.com>2012-05-29 14:43:17 +0000
commitaf55fb62171f66c51e1c360cce78315f86332f4b (patch)
tree4a126f1e3b58833ff0de682c77f80c9fc50c6002 /legacy/evas/src/lib/engines/common/evas_font_main.c
parentd7f811fe8ffc4196d31a832220939cdf7c63c37d (diff)
Evas text: apply italic correction for run-time slanted texts (disabled).
Also, put the slant angle calculations in a macro for easier future changes. Just have it there so people who want it can turn it on. SVN revision: 71506
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_font_main.c b/legacy/evas/src/lib/engines/common/evas_font_main.c
index 1bbf5c3d04..94f4f772f9 100644
--- a/legacy/evas/src/lib/engines/common/evas_font_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_font_main.c
@@ -342,7 +342,8 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt idx)
342 FT_Error error; 342 FT_Error error;
343 const FT_Int32 hintflags[3] = 343 const FT_Int32 hintflags[3] =
344 { FT_LOAD_NO_HINTING, FT_LOAD_FORCE_AUTOHINT, FT_LOAD_NO_AUTOHINT }; 344 { FT_LOAD_NO_HINTING, FT_LOAD_FORCE_AUTOHINT, FT_LOAD_NO_AUTOHINT };
345 static FT_Matrix transform = {0x10000, 0x05000, 0x0000, 0x10000}; // about 12 degree. 345 static FT_Matrix transform = {0x10000, _EVAS_FONT_SLANT_TAN * 0x10000,
346 0x00000, 0x10000};
346 347
347 evas_common_font_int_promote(fi); 348 evas_common_font_int_promote(fi);
348 if (fi->fash) 349 if (fi->fash)