Skip to content

Commit c36edf4

Browse files
committed
Fix mono font rendering -- characters are now correctly superimposed. Primarily affects mathtext.
1 parent c5593ee commit c36edf4

File tree

101 files changed

+1
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1
-1
lines changed

src/ft2font.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ FT2Image::draw_bitmap(FT_Bitmap* bitmap,
145145
for (FT_Int j = x1; j < x2; ++j, ++dst) {
146146
int x = (j - x1 + x_start);
147147
int val = *(src + (x >> 3)) & (1 << (7 - (x & 0x7)));
148-
*dst = val ? 255 : 0;
148+
*dst = val ? 255 : *dst;
149149
}
150150
}
151151
} else {

0 commit comments

Comments
 (0)