diff options
| author | Joakim Verona | 2011-07-15 04:39:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-15 04:39:29 +0200 |
| commit | 4f616a2e7ed1db28da98df90266e9751a8ae9ee1 (patch) | |
| tree | 74a9dcbe13e945e712ae04a4a94c2202ca720591 /src/font.c | |
| parent | ff2be00005c3aeda6e11d7ed264ce86f02b60958 (diff) | |
| parent | ec2bc542a4d0127425625e8cb458684bd825675a (diff) | |
| download | emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.tar.gz emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.zip | |
merge from upstream
Diffstat (limited to 'src/font.c')
| -rw-r--r-- | src/font.c | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/src/font.c b/src/font.c index 14390335f3c..5f8d22157d6 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1738,8 +1738,7 @@ font_parse_family_registry (Lisp_Object family, Lisp_Object registry, Lisp_Objec | |||
| 1738 | #define LGSTRING_GLYPH_SIZE 8 | 1738 | #define LGSTRING_GLYPH_SIZE 8 |
| 1739 | 1739 | ||
| 1740 | static int | 1740 | static int |
| 1741 | check_gstring (gstring) | 1741 | check_gstring (Lisp_Object gstring) |
| 1742 | Lisp_Object gstring; | ||
| 1743 | { | 1742 | { |
| 1744 | Lisp_Object val; | 1743 | Lisp_Object val; |
| 1745 | int i, j; | 1744 | int i, j; |
| @@ -1793,8 +1792,7 @@ check_gstring (gstring) | |||
| 1793 | } | 1792 | } |
| 1794 | 1793 | ||
| 1795 | static void | 1794 | static void |
| 1796 | check_otf_features (otf_features) | 1795 | check_otf_features (Lisp_Object otf_features) |
| 1797 | Lisp_Object otf_features; | ||
| 1798 | { | 1796 | { |
| 1799 | Lisp_Object val; | 1797 | Lisp_Object val; |
| 1800 | 1798 | ||
| @@ -1827,8 +1825,7 @@ check_otf_features (otf_features) | |||
| 1827 | Lisp_Object otf_list; | 1825 | Lisp_Object otf_list; |
| 1828 | 1826 | ||
| 1829 | static Lisp_Object | 1827 | static Lisp_Object |
| 1830 | otf_tag_symbol (tag) | 1828 | otf_tag_symbol (OTF_Tag tag) |
| 1831 | OTF_Tag tag; | ||
| 1832 | { | 1829 | { |
| 1833 | char name[5]; | 1830 | char name[5]; |
| 1834 | 1831 | ||
| @@ -1837,8 +1834,7 @@ otf_tag_symbol (tag) | |||
| 1837 | } | 1834 | } |
| 1838 | 1835 | ||
| 1839 | static OTF * | 1836 | static OTF * |
| 1840 | otf_open (file) | 1837 | otf_open (Lisp_Object file) |
| 1841 | Lisp_Object file; | ||
| 1842 | { | 1838 | { |
| 1843 | Lisp_Object val = Fassoc (file, otf_list); | 1839 | Lisp_Object val = Fassoc (file, otf_list); |
| 1844 | OTF *otf; | 1840 | OTF *otf; |
| @@ -1860,8 +1856,7 @@ otf_open (file) | |||
| 1860 | (struct font_driver).otf_capability. */ | 1856 | (struct font_driver).otf_capability. */ |
| 1861 | 1857 | ||
| 1862 | Lisp_Object | 1858 | Lisp_Object |
| 1863 | font_otf_capability (font) | 1859 | font_otf_capability (struct font *font) |
| 1864 | struct font *font; | ||
| 1865 | { | 1860 | { |
| 1866 | OTF *otf; | 1861 | OTF *otf; |
| 1867 | Lisp_Object capability = Fcons (Qnil, Qnil); | 1862 | Lisp_Object capability = Fcons (Qnil, Qnil); |
| @@ -1935,9 +1930,7 @@ font_otf_capability (font) | |||
| 1935 | FEATURES. */ | 1930 | FEATURES. */ |
| 1936 | 1931 | ||
| 1937 | static void | 1932 | static void |
| 1938 | generate_otf_features (spec, features) | 1933 | generate_otf_features (Lisp_Object spec, char *features) |
| 1939 | Lisp_Object spec; | ||
| 1940 | char *features; | ||
| 1941 | { | 1934 | { |
| 1942 | Lisp_Object val; | 1935 | Lisp_Object val; |
| 1943 | char *p; | 1936 | char *p; |
| @@ -1972,8 +1965,7 @@ generate_otf_features (spec, features) | |||
| 1972 | } | 1965 | } |
| 1973 | 1966 | ||
| 1974 | Lisp_Object | 1967 | Lisp_Object |
| 1975 | font_otf_DeviceTable (device_table) | 1968 | font_otf_DeviceTable (OTF_DeviceTable *device_table) |
| 1976 | OTF_DeviceTable *device_table; | ||
| 1977 | { | 1969 | { |
| 1978 | int len = device_table->StartSize - device_table->EndSize + 1; | 1970 | int len = device_table->StartSize - device_table->EndSize + 1; |
| 1979 | 1971 | ||
| @@ -1982,9 +1974,7 @@ font_otf_DeviceTable (device_table) | |||
| 1982 | } | 1974 | } |
| 1983 | 1975 | ||
| 1984 | Lisp_Object | 1976 | Lisp_Object |
| 1985 | font_otf_ValueRecord (value_format, value_record) | 1977 | font_otf_ValueRecord (int value_format, OTF_ValueRecord *value_record) |
| 1986 | int value_format; | ||
| 1987 | OTF_ValueRecord *value_record; | ||
| 1988 | { | 1978 | { |
| 1989 | Lisp_Object val = Fmake_vector (make_number (8), Qnil); | 1979 | Lisp_Object val = Fmake_vector (make_number (8), Qnil); |
| 1990 | 1980 | ||
| @@ -2008,8 +1998,7 @@ font_otf_ValueRecord (value_format, value_record) | |||
| 2008 | } | 1998 | } |
| 2009 | 1999 | ||
| 2010 | Lisp_Object | 2000 | Lisp_Object |
| 2011 | font_otf_Anchor (anchor) | 2001 | font_otf_Anchor (OTF_Anchor *anchor) |
| 2012 | OTF_Anchor *anchor; | ||
| 2013 | { | 2002 | { |
| 2014 | Lisp_Object val; | 2003 | Lisp_Object val; |
| 2015 | 2004 | ||
| @@ -3739,8 +3728,9 @@ font_range (EMACS_INT pos, EMACS_INT *limit, struct window *w, struct face *face | |||
| 3739 | else | 3728 | else |
| 3740 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK (c, string, pos, pos_byte); | 3729 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK (c, string, pos, pos_byte); |
| 3741 | category = CHAR_TABLE_REF (Vunicode_category_table, c); | 3730 | category = CHAR_TABLE_REF (Vunicode_category_table, c); |
| 3742 | if (EQ (category, QCf) | 3731 | if (INTEGERP (category) |
| 3743 | || CHAR_VARIATION_SELECTOR_P (c)) | 3732 | && (XINT (category) == UNICODE_CATEGORY_Cf |
| 3733 | || CHAR_VARIATION_SELECTOR_P (c))) | ||
| 3744 | continue; | 3734 | continue; |
| 3745 | if (NILP (font_object)) | 3735 | if (NILP (font_object)) |
| 3746 | { | 3736 | { |