mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[uniscribe] Use font size directly
This commit is contained in:
1 parent
892eb2e462
commit
3fd2b5bece
1 file changed
+1
-1
@@ -65,7 +65,7 @@ populate_log_font (LOGFONTW *lf,
|
||||
{
|
||||
memset (lf, 0, sizeof (*lf));
|
||||
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')));
|
||||
const name *name_table = Sanitizer<name>::lock_instance (blob);
|
||||
|
||||
Reference in new issue
Block a user