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:
8f6a961
)
(compare_font_score): Prefer a font of not
author
handa
<handa>
Thu, 25 Aug 2005 01:22:09 +0000
(
01:22
+0000)
committer
handa
<handa>
Thu, 25 Aug 2005 01:22:09 +0000
(
01:22
+0000)
for_full_width.
src/font.c
patch
|
blob
|
history
diff --git
a/src/font.c
b/src/font.c
index
3dc2301
..
4fb02f2
100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-1330,7
+1330,11
@@
mfont__available (MFrame *frame, MFont *font)
static int
compare_font_score (const void *e1, const void *e2)
{
- return (((MFontScore *) e1)->score > ((MFontScore *) e2)->score);
+ MFontScore *s1 = (MFontScore *) e1, *s2 = (MFontScore *) e2;
+
+ return (s1->font->for_full_width == s2->font->for_full_width
+ ? s1->score > s2->score
+ : s1->font->for_full_width);
}
void