Fix Uniscribe charset matching

Previously was failing to match fonts that didn't support CHARSET_ANSI.

There still remains a problem with the Uniscribe backend, in that if a
font with the same family name is installed, and is newer, the native
one is preferred over the font we provide.  Fixing it requires rewriting
the name table with a unique family name...
This commit is contained in:
Behdad Esfahbod 2012-06-08 14:08:32 -04:00
parent 82e8bd8628
commit dbffa4c83d
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ populate_log_font (LOGFONTW *lf,
{
memset (lf, 0, sizeof (*lf));
lf->lfHeight = -font->y_scale;
lf->lfCharSet = DEFAULT_CHARSET;
hb_blob_t *blob = Sanitizer<name>::sanitize (hb_face_reference_table (font->face, HB_TAG ('n','a','m','e')));
const name *name_table = Sanitizer<name>::lock_instance (blob);