diff options
| author | Kenichi Handa | 2003-09-08 11:56:09 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-09-08 11:56:09 +0000 |
| commit | 463f5630a5e7cbe7f042bc1175d1fa1c4e98860f (patch) | |
| tree | 3287d0c628fea2249abf4635b3a4f45bedd6f8c4 /src/xfaces.c | |
| parent | 4256310de631bd57c78b88b5131caa073315b3d7 (diff) | |
| download | emacs-463f5630a5e7cbe7f042bc1175d1fa1c4e98860f.tar.gz emacs-463f5630a5e7cbe7f042bc1175d1fa1c4e98860f.zip | |
New directory
Diffstat (limited to 'src/xfaces.c')
| -rw-r--r-- | src/xfaces.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 96a1d52b3c2..e296c52a2b8 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6045,18 +6045,6 @@ better_font_p (values, font1, font2, compare_pt_p, avgwidth) | |||
| 6045 | return 1; | 6045 | return 1; |
| 6046 | } | 6046 | } |
| 6047 | 6047 | ||
| 6048 | if (! compare_pt_p) | ||
| 6049 | { | ||
| 6050 | /* We prefer a real scalable font; i.e. not what autoscaled. */ | ||
| 6051 | int auto_scaled_1 = (font1->numeric[XLFD_POINT_SIZE] == 0 | ||
| 6052 | && font1->numeric[XLFD_RESY] > 0); | ||
| 6053 | int auto_scaled_2 = (font2->numeric[XLFD_POINT_SIZE] == 0 | ||
| 6054 | && font2->numeric[XLFD_RESY] > 0); | ||
| 6055 | |||
| 6056 | if (auto_scaled_1 != auto_scaled_2) | ||
| 6057 | return auto_scaled_2; | ||
| 6058 | } | ||
| 6059 | |||
| 6060 | return font1->registry_priority < font2->registry_priority; | 6048 | return font1->registry_priority < font2->registry_priority; |
| 6061 | } | 6049 | } |
| 6062 | 6050 | ||
| @@ -6289,10 +6277,7 @@ best_matching_font (f, attrs, fonts, nfonts, width_ratio, needs_overstrike) | |||
| 6289 | || better_font_p (specified, fonts + i, best, 0, 0) | 6277 | || better_font_p (specified, fonts + i, best, 0, 0) |
| 6290 | || (!non_scalable_has_exact_height_p | 6278 | || (!non_scalable_has_exact_height_p |
| 6291 | && !better_font_p (specified, best, fonts + i, 0, 0))) | 6279 | && !better_font_p (specified, best, fonts + i, 0, 0))) |
| 6292 | { | 6280 | best = fonts + i; |
| 6293 | non_scalable_has_exact_height_p = 1; | ||
| 6294 | best = fonts + i; | ||
| 6295 | } | ||
| 6296 | } | 6281 | } |
| 6297 | 6282 | ||
| 6298 | if (needs_overstrike) | 6283 | if (needs_overstrike) |
| @@ -6439,7 +6424,7 @@ try_font_list (f, attrs, family, registry, fonts, prefer_face_family) | |||
| 6439 | 6424 | ||
| 6440 | /* Try any family with the given registry. */ | 6425 | /* Try any family with the given registry. */ |
| 6441 | if (nfonts == 0) | 6426 | if (nfonts == 0) |
| 6442 | nfonts = try_alternative_families (f, Qnil, registry, fonts); | 6427 | nfonts = font_list (f, Qnil, Qnil, registry, fonts); |
| 6443 | 6428 | ||
| 6444 | return nfonts; | 6429 | return nfonts; |
| 6445 | } | 6430 | } |
| @@ -7742,6 +7727,3 @@ a font of 10 point, we actually use a font of 10 * RESCALE-RATIO point. */); | |||
| 7742 | defsubr (&Sx_font_family_list); | 7727 | defsubr (&Sx_font_family_list); |
| 7743 | #endif /* HAVE_WINDOW_SYSTEM */ | 7728 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 7744 | } | 7729 | } |
| 7745 | |||
| 7746 | /* arch-tag: 8a0f7598-5517-408d-9ab3-1da6fcd4c749 | ||
| 7747 | (do not change this comment) */ | ||