Changeset 3046

Show
Ignore:
Timestamp:
03/08/03 20:23:00 (6 years ago)
Author:
himi
Message:

(mw32_set_encoding_byte_from_charset):
When c < 0, regard it as an ascii, so set font_unit_byte to 1.
(mw32_elisp_logical_font_loader): Return immediately whenever it
is not in the main thread.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • work/cvs2svn/src/mw32font.c

    r3041 r3046  
    11021102mw32_set_encoding_byte_from_charset (MW32LogicalFont *plf, int c) 
    11031103{ 
    1104   if (plf->encoding.font_unit_byte == 0) { 
    1105     Lisp_Object charset = CHAR_CHARSET (c); 
    1106     if (NILP (charset)) 
    1107       plf->encoding.font_unit_byte = 1; 
    1108     else 
    1109       plf->encoding.font_unit_byte = CHARSET_DIMENSION (charset); 
    1110   } 
     1104  if (plf->encoding.font_unit_byte == 0) 
     1105    { 
     1106      if (c < 0) 
     1107        { 
     1108          plf->encoding.font_unit_byte = 1; 
     1109        } 
     1110      else 
     1111        { 
     1112          Lisp_Object charset = CHAR_CHARSET (c); 
     1113          if (NILP (charset)) 
     1114            plf->encoding.font_unit_byte = 1; 
     1115          else 
     1116            plf->encoding.font_unit_byte = CHARSET_DIMENSION (charset); 
     1117        } 
     1118    } 
    11111119} 
    11121120 
     
    19641972  Lisp_Object args[4]; 
    19651973 
     1974  if (!MW32_MAIN_THREAD_P()) return NULL; 
     1975 
    19661976  if (face) 
    19671977    attrs = face->lface;