]> code.delx.au - gnu-emacs/commitdiff
(bdffont): Add nchars.
authorJason Rumney <jasonr@gnu.org>
Sun, 29 Oct 2000 21:02:58 +0000 (21:02 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 29 Oct 2000 21:02:58 +0000 (21:02 +0000)
src/ChangeLog
src/w32bdf.h

index f49ca95e947c4e8a20ac14b7cfcbcc912b52b668..81869c73512772eef590802ebdd57dc4e576d262 100644 (file)
@@ -1,3 +1,18 @@
+2000-10-29  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
+
+       * w32term.c (w32_bdf_per_char_metric): Negate descent.
+       (w32_cache_char_metrics): Handle possibility that 'x' does not
+       exist in a BDF font.
+       (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
+
+       * w32bdf.h (bdffont): Add nchars.
+
+       * w32bdf.c (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.
+
 2000-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
index 47f3067d29067e38c425bd6f595ee56addd1d394..df0976bb1fa79ea48754dc740aedd13856de5a2c 100644 (file)
@@ -107,6 +107,7 @@ typedef struct
   int width;
   int height;
   int pixsz;
+  int nchars;
 } bdffont;
 
 #define BDF_FILE_SIZE_MAX 256*1024*1024 /* 256Mb */