mirror of
https://github.com/olikraus/u8g2.git
synced 2026-07-27 20:05:57 +00:00
bugfix for encoding 255, issue #2447
This commit is contained in:
@@ -526,3 +526,39 @@ mystery_quest: bdfconv
|
||||
./bdfconv -v -f 1 -m '32-127' mystery-quest.regular.bdf -o u8g2_font_mystery_quest_42_t.c -n u8g2_font_mystery_quest_42_t -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga u8g2_font_mystery_quest_42_t.png
|
||||
|
||||
t0: bdfconv
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../bdf/t0-12-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_12_v1.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../tmp/uw-ttyp0-2.1/genbdf/t0-12-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_12_v2.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../bdf/t0-14-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_14_v1.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../tmp/uw-ttyp0-2.1/genbdf/t0-14-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_14_v2.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../bdf/t0-18-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_18_v1.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../tmp/uw-ttyp0-2.1/genbdf/t0-18-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_18_v2.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../tmp/uw-ttyp0-2.1/genbdf/t0-30-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_30_v2.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../tmp/uw-ttyp0-2.1/genbdf/t0-40-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_40_v2.png
|
||||
|
||||
./bdfconv -v -g 16 -f 1 -m '254-257' ../tmp/uw-ttyp0-2.1/genbdf/t0-40-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_40_bug_v2.png
|
||||
|
||||
./bdfconv -v -g 32 -f 1 -m '32-701,7838,8364' ../tmp/uw-ttyp0-2.1/genbdf/t0-60-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_60_v2.png
|
||||
|
||||
|
||||
./bdfconv -v -g 32 -f 1 -m '32-65535' ../bdf/t0-18-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_18_all_v1.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-65535' ../tmp/uw-ttyp0-2.1/genbdf/t0-18-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_18_all_v2.png
|
||||
|
||||
|
||||
./bdfconv -v -g 32 -f 1 -m '32-159,8224-10239,10496-11359' ../bdf/t0-18-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_18_sym_v1.png
|
||||
./bdfconv -v -g 32 -f 1 -m '32-159,8224-10239,10496-11359' ../tmp/uw-ttyp0-2.1/genbdf/t0-18-uni.bdf -o tmp.c -n u8g2_font_helvB18_tn -d ../bdf/helvB18.bdf
|
||||
convert bdf.tga t0_18_sym_v2.png
|
||||
|
||||
|
||||
@@ -496,7 +496,7 @@ unsigned tga_draw_glyph(unsigned x, unsigned y, uint16_t encoding, int is_hints)
|
||||
uint8_t *glyph_data = tga_get_glyph_data(encoding); /* better skip the first 2 or 3 bytes */
|
||||
if ( glyph_data != NULL )
|
||||
{
|
||||
dx = tga_fd_decode(&f, glyph_data, encoding >= 255 ? 1 : 0);
|
||||
dx = tga_fd_decode(&f, glyph_data, encoding > 255 ? 1 : 0); /* 20 Sep 2025: >= changed to > */
|
||||
if ( is_hints )
|
||||
{
|
||||
tga_set_pixel(x+dx, y, 28,133,240); /* orange: reference point */
|
||||
|
||||
Reference in New Issue
Block a user