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:
80c3d3f
)
(mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY,
author
handa
<handa>
Mon, 2 Aug 2004 02:37:44 +0000
(
02:37
+0000)
committer
handa
<handa>
Mon, 2 Aug 2004 02:37:44 +0000
(
02:37
+0000)
set val to 1 even if it is greater than 1.
src/font.c
patch
|
blob
|
history
diff --git
a/src/font.c
b/src/font.c
index
90e9db6
..
6d42b47
100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-958,6
+958,8
@@
mfont__score (MFont *font, MFont *spec, MFont *request, int limited_size)
return -1;
if (font->property[prop])
val = abs (font->property[prop] - request->property[prop]);
+ if (val && prop <= MFONT_FAMILY)
+ val = 1;
if (prop == MFONT_SIZE)
{
if (font->property[MFONT_RESY] == 0)