diff options
Diffstat (limited to 'console-tools/loadfont.c')
-rw-r--r-- | console-tools/loadfont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 3c77813b5..079626c20 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -136,7 +136,7 @@ static void do_loadfont(int fd, unsigned char *inbuf, int height, int width, int | |||
136 | * Example: | 136 | * Example: |
137 | * At the font position for a capital A-ring glyph, we | 137 | * At the font position for a capital A-ring glyph, we |
138 | * may have: | 138 | * may have: |
139 | * 00C5,212B,FFFE,0041,030A,FFFF | 139 | * 00C5,212B,FFFE,0041,030A,FFFF |
140 | * Some font positions may be described by sequences only, | 140 | * Some font positions may be described by sequences only, |
141 | * namely when there is no precomposed Unicode value for the glyph. | 141 | * namely when there is no precomposed Unicode value for the glyph. |
142 | */ | 142 | */ |
@@ -159,7 +159,7 @@ static void do_loadtable(int fd, unsigned char *inbuf, int tailsz, int fontsize, | |||
159 | int glyph; | 159 | int glyph; |
160 | uint16_t unicode; | 160 | uint16_t unicode; |
161 | 161 | ||
162 | maxct = tailsz; /* more than enough */ | 162 | maxct = tailsz; /* more than enough */ |
163 | up = xmalloc(maxct * sizeof(*up)); | 163 | up = xmalloc(maxct * sizeof(*up)); |
164 | 164 | ||
165 | for (glyph = 0; glyph < fontsize; glyph++) { | 165 | for (glyph = 0; glyph < fontsize; glyph++) { |
@@ -255,10 +255,10 @@ static void do_load(int fd, unsigned char *buffer, size_t len) | |||
255 | } else | 255 | } else |
256 | #endif | 256 | #endif |
257 | #if ENABLE_FEATURE_LOADFONT_RAW | 257 | #if ENABLE_FEATURE_LOADFONT_RAW |
258 | if (len == 9780) { /* file with three code pages? */ | 258 | if (len == 9780) { /* file with three code pages? */ |
259 | charsize = height = 16; | 259 | charsize = height = 16; |
260 | font += 40; | 260 | font += 40; |
261 | } else if ((len & 0377) == 0) { /* bare font */ | 261 | } else if ((len & 0377) == 0) { /* bare font */ |
262 | charsize = height = len / 256; | 262 | charsize = height = len / 256; |
263 | } else | 263 | } else |
264 | #endif | 264 | #endif |