projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
892eb2e
)
[uniscribe] Use font size directly
author
Behdad Esfahbod
<behdad@behdad.org>
Sun, 7 Aug 2011 02:59:54 +0000
(22:59 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sun, 7 Aug 2011 02:59:54 +0000
(22:59 -0400)
src/hb-uniscribe-shape.cc
patch
|
blob
|
history
diff --git
a/src/hb-uniscribe-shape.cc
b/src/hb-uniscribe-shape.cc
index 3b1a1786b8ab7d627de648b75709f2dd07e57d4b..0934d5db5d64051d9a1d7c91b3d4aba33f0dfa9a 100644
(file)
--- a/
src/hb-uniscribe-shape.cc
+++ b/
src/hb-uniscribe-shape.cc
@@
-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);