# HG changeset patch # User Jason Rumney # Date 972853237 0 # Node ID 5a1e3282fe2e219d2a9c858d0516b2b59195185d # Parent 365605845e3323e0e5679611f5c5e99c18ae8a9f (set_bdf_font_info): Set it. (w32_BDF_TextOut): Swap byte order of double byte characters. (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars. diff -r 365605845e33 -r 5a1e3282fe2e src/w32bdf.c --- a/src/w32bdf.c Sun Oct 29 20:59:47 2000 +0000 +++ b/src/w32bdf.c Sun Oct 29 21:00:37 2000 +0000 @@ -211,6 +211,7 @@ start = q; flag = proceed_file_line("CHARS", start, &len, &p, &q); if (!flag) return 0; + fontp->nchars = atoi(p); fontp->seeked = q; return 1; @@ -649,7 +650,7 @@ { bytelen -= 2; if (bytelen < 0) break; - index = MAKELENDSHORT(textp[1], textp[0]); + index = MAKELENDSHORT(textp[0], textp[1]); textp += 2; } pcb = get_bitmap_with_cache(fontp, index); @@ -722,8 +723,9 @@ font->bdf = bdf_font; font->hfont = 0; - /* NTEMACS_TODO: Recognize DBCS fonts. */ - font->double_byte_p = 0; + /* NTEMACS_TODO: Better way of determining if a font is double byte + or not. */ + font->double_byte_p = bdf_font->nchars > 255 ? 1 : 0; w32_cache_char_metrics (font);