summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 616c54a9e..8b00ab5cc 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -1045,7 +1045,7 @@ const Sprite *GetGlyph(FontSize size, WChar key)
sprite.y_offs = _ascender[size] - slot->bitmap_top;
/* Draw shadow for medium size */
- if (size == FS_NORMAL) {
+ if (size == FS_NORMAL && !aa) {
for (y = 0; y < slot->bitmap.rows; y++) {
for (x = 0; x < slot->bitmap.width; x++) {
if (aa ? (slot->bitmap.buffer[x + y * slot->bitmap.pitch] > 0) : HasBit(slot->bitmap.buffer[(x / 8) + y * slot->bitmap.pitch], 7 - (x % 8))) {
@@ -1074,6 +1074,12 @@ const Sprite *GetGlyph(FontSize size, WChar key)
}
+bool GetDrawGlyphShadow()
+{
+ return GetFontFace(FS_NORMAL) != NULL && GetFontAAState(FS_NORMAL);
+}
+
+
uint GetGlyphWidth(FontSize size, WChar key)
{
FT_Face face = GetFontFace(size);