diff options
| author | Kenichi Handa | 2009-04-13 12:41:33 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-04-13 12:41:33 +0000 |
| commit | a8a3728b90d75d89368be8e35d5c26468e071d5c (patch) | |
| tree | a7f3775c829d7114fb68d2bbe243d4e0f53a927d /src | |
| parent | 99c4d65db7400d28b56494fd3671471a43acb76d (diff) | |
| download | emacs-a8a3728b90d75d89368be8e35d5c26468e071d5c.tar.gz emacs-a8a3728b90d75d89368be8e35d5c26468e071d5c.zip | |
(get_adstyle_property): Fix previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 28 | ||||
| -rw-r--r-- | src/ftfont.c | 1 |
2 files changed, 28 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 37a4a833fe4..f4bbfa43526 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2009-04-13 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * font.c (font_delete_unmatched): Preserve the order of list | ||
| 4 | elements. | ||
| 5 | (font_select_entity): Suppress the code to optimize for the same | ||
| 6 | kind of fonts. | ||
| 7 | (font_load_for_lface): Get a font that supports at least ASCII | ||
| 8 | characters. | ||
| 9 | |||
| 10 | * ftfont.c (Qja, Qko): New variables. | ||
| 11 | (fc_charset_table): Delete uniquifier data for iso8859-1. | ||
| 12 | (ftfont_get_latin1_charset): New function. | ||
| 13 | (get_adstyle_property): New function. | ||
| 14 | (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for | ||
| 15 | bitmap fonts. | ||
| 16 | (ftfont_lookup_cache): Handle the case that KEY is a font-entity. | ||
| 17 | Delete iso-8859-1 range from the charset of fonts whose adstyle is | ||
| 18 | `ko' or `ja'. | ||
| 19 | (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY. | ||
| 20 | (ftfont_get_charset): For iso8859-1, call | ||
| 21 | ftfont_get_latin1_charset. | ||
| 22 | (ftfont_list): Don't refuse a font spec with non-nil `adstyle' | ||
| 23 | property. | ||
| 24 | (ftfont_open): Call ftfont_lookup_cache with ENTITY. | ||
| 25 | (syms_of_ftfont): DEFSYM Qja and Qko. | ||
| 26 | |||
| 1 | 2009-04-09 Kenichi Handa <handa@m17n.org> | 27 | 2009-04-09 Kenichi Handa <handa@m17n.org> |
| 2 | 28 | ||
| 3 | * charset.c (map_charset_chars): For a charset of `superset' | 29 | * charset.c (map_charset_chars): For a charset of `superset' |
| @@ -443,7 +469,7 @@ | |||
| 443 | (font_find_for_lface): Use font_select_entity to select a font. | 469 | (font_find_for_lface): Use font_select_entity to select a font. |
| 444 | 470 | ||
| 445 | * fontset.c (fontset_find_font): If a font found without | 471 | * fontset.c (fontset_find_font): If a font found without |
| 446 | restricting of the characters C doen't support C, try to find a | 472 | restricting to the characters C doesn't support C, try to find a |
| 447 | font with C restriction. | 473 | font with C restriction. |
| 448 | 474 | ||
| 449 | 2009-03-04 Nikolaj Schumacher <me@nschum.de> | 475 | 2009-03-04 Nikolaj Schumacher <me@nschum.de> |
diff --git a/src/ftfont.c b/src/ftfont.c index 6865478bd20..f2fa877c554 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -187,6 +187,7 @@ get_adstyle_property (FcPattern *p) | |||
| 187 | char *p = alloca (end - str + 1); | 187 | char *p = alloca (end - str + 1); |
| 188 | memcpy (p, str, end - str); | 188 | memcpy (p, str, end - str); |
| 189 | p[end - str] = '\0'; | 189 | p[end - str] = '\0'; |
| 190 | end = p + (end - str); | ||
| 190 | str = p; | 191 | str = p; |
| 191 | } | 192 | } |
| 192 | if (xstrcasecmp (str, "Regular") == 0 | 193 | if (xstrcasecmp (str, "Regular") == 0 |