[uniscribe] Use font size directly
This commit is contained in:
parent
892eb2e462
commit
3fd2b5bece
|
@ -65,7 +65,7 @@ populate_log_font (LOGFONTW *lf,
|
||||||
{
|
{
|
||||||
memset (lf, 0, sizeof (*lf));
|
memset (lf, 0, sizeof (*lf));
|
||||||
int dpi = GetDeviceCaps (hdc, LOGPIXELSY);
|
int dpi = GetDeviceCaps (hdc, LOGPIXELSY);
|
||||||
lf->lfHeight = MulDiv (font->x_scale, dpi, 72);
|
lf->lfHeight = -font->y_scale;
|
||||||
|
|
||||||
hb_blob_t *blob = Sanitizer<name>::sanitize (hb_face_reference_table (font->face, HB_TAG ('n','a','m','e')));
|
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);
|
const name *name_table = Sanitizer<name>::lock_instance (blob);
|
||||||
|
|
Loading…
Reference in New Issue