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:
1b4a2cc
)
[hb-view] Use cached hb-ft face creation
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 4 Apr 2011 18:49:50 +0000
(14:49 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 4 Apr 2011 18:49:50 +0000
(14:49 -0400)
Avoids recreating the face the second time we call draw().
src/hb-view.c
patch
|
blob
|
history
diff --git
a/src/hb-view.c
b/src/hb-view.c
index
0411b56
..
c4b942f
100644
(file)
--- a/
src/hb-view.c
+++ b/
src/hb-view.c
@@
-241,7
+241,7
@@
_hb_cr_text_glyphs (cairo_t *cr,
{
cairo_scaled_font_t *scaled_font = cairo_get_scaled_font (cr);
FT_Face ft_face = cairo_ft_scaled_font_lock_face (scaled_font);
- hb_face_t *hb_face = hb_ft_face_create
(ft_face, NULL
);
+ hb_face_t *hb_face = hb_ft_face_create
_cached (ft_face
);
hb_font_t *hb_font = hb_ft_font_create (ft_face, NULL);
hb_buffer_t *hb_buffer;
cairo_glyph_t *cairo_glyphs;