byte character case.
(w32_per_char_metric): Do not try to make any assumptions about the
metrics of BDF fonts.
char buf[2];
if (dim == 1)
- buf[0] = (char)char2b;
+ buf[0] = (char)(*char2b);
else
{
buf[0] = BYTE1 (*char2b);
xassert (font_type != UNKNOWN_FONT);
/* Handle the common cases quickly. */
- if (font->per_char == NULL)
+ if (!font->bdf && font->per_char == NULL)
/* TODO: determine whether char2b exists in font? */
return &font->max_bounds;
- else if (*char2b < 128)
+ else if (!font->bdf && *char2b < 128)
return &font->per_char[*char2b];
pcm = &font->scratch;