projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c0818b
)
(ft_open): Set rface->average_width.
author
handa
<handa>
Thu, 22 Sep 2005 07:27:03 +0000
(07:27 +0000)
committer
handa
<handa>
Thu, 22 Sep 2005 07:27:03 +0000
(07:27 +0000)
src/font-ft.c
patch
|
blob
|
history
diff --git
a/src/font-ft.c
b/src/font-ft.c
index
54d2d83
..
1ce8825
100644
(file)
--- a/
src/font-ft.c
+++ b/
src/font-ft.c
@@
-1366,7
+1366,10
@@
ft_open (MFrame *frame, MFont *font, MFont *spec, MRealizedFont *rfont)
}
}
#endif
-
+ if (FT_IS_SCALABLE (ft_face))
+ rfont->average_width = 0;
+ else
+ rfont->average_width = ft_face->available_sizes->width;
rfont->next = MPLIST_VAL (frame->realized_font_list);
MPLIST_VAL (frame->realized_font_list) = rfont;
MDEBUG_PRINT (" ok\n");