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:
1e7d860
)
[old] Implement fontMetrics
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 1 Aug 2012 04:03:41 +0000
(
00:03
-0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 1 Aug 2012 04:03:41 +0000
(
00:03
-0400)
src/hb-old.cc
patch
|
blob
|
history
diff --git
a/src/hb-old.cc
b/src/hb-old.cc
index
84a431c
..
1f6bf7f
100644
(file)
--- a/
src/hb-old.cc
+++ b/
src/hb-old.cc
@@
-161,7
+161,16
@@
static HB_Fixed
hb_old_getFontMetric (HB_Font old_font,
HB_FontMetric metric)
{
- return 0; // TODO
+ hb_font_t *font = (hb_font_t *) old_font->userData;
+
+ switch (metric)
+ {
+ case HB_FontAscent:
+ return font->y_scale; /* XXX We don't have ascent data yet. */
+
+ default:
+ return 0;
+ }
}
static const HB_FontClass hb_old_font_class = {