aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c33
1 files changed, 30 insertions, 3 deletions
diff --git a/src/font.c b/src/font.c
index 0bd18d4c5cd..df59a3b3376 100644
--- a/src/font.c
+++ b/src/font.c
@@ -2424,7 +2424,10 @@ font_check_otf_features (script, langsys, features, table)
2424 for (negative = 0; CONSP (features); features = XCDR (features)) 2424 for (negative = 0; CONSP (features); features = XCDR (features))
2425 { 2425 {
2426 if (NILP (XCAR (features))) 2426 if (NILP (XCAR (features)))
2427 negative = 1; 2427 {
2428 negative = 1;
2429 continue;
2430 }
2428 if (NILP (Fmemq (XCAR (features), table)) != negative) 2431 if (NILP (Fmemq (XCAR (features), table)) != negative)
2429 return 0; 2432 return 0;
2430 } 2433 }
@@ -3921,8 +3924,8 @@ encoding of a font, e.g. ``iso8859-1''.
3921`:size' 3924`:size'
3922 3925
3923VALUE must be a non-negative integer or a floating point number 3926VALUE must be a non-negative integer or a floating point number
3924specifying the font size. It specifies the font size in pixels 3927specifying the font size. It specifies the font size in pixels (if
3925(if VALUE is an integer), or in points (if VALUE is a float). 3928VALUE is an integer), or in points (if VALUE is a float).
3926 3929
3927`:name' 3930`:name'
3928 3931
@@ -3933,6 +3936,30 @@ VALUE must be a string of XLFD-style or fontconfig-style font name.
3933VALUE must be a symbol representing a script that the font must 3936VALUE must be a symbol representing a script that the font must
3934support. It may be a symbol representing a subgroup of a script 3937support. It may be a symbol representing a subgroup of a script
3935listed in the variable `script-representative-chars'. 3938listed in the variable `script-representative-chars'.
3939
3940`:lang'
3941
3942VALUE must be a symbol of two-letter ISO-639 language names,
3943e.g. `ja'.
3944
3945`:otf'
3946
3947VALUE must be a list (SCRIPT-TAG LANGSYS-TAG GSUB [ GPOS ]) to specify
3948required OpenType features.
3949
3950 SCRIPT-TAG: OpenType script tag symbol (e.g. `deva').
3951 LANGSYS-TAG: OpenType language system tag symbol,
3952 or nil for the default language system.
3953 GSUB: List of OpenType GSUB feature tag symbols, or nil if none required.
3954 GPOS: List of OpenType GPOS feature tag symbols, or nil if none required.
3955
3956GSUB and GPOS may contain `nil' element. In such a case, the font
3957must not have any of the remaining elements.
3958
3959For instance, if the VALUE is `(thai nil nil (mark))', the font must
3960be an OpenTyep font, and whose GPOS table of `thai' script's default
3961language system must contain `mark' feature.
3962
3936usage: (font-spec ARGS...) */) 3963usage: (font-spec ARGS...) */)
3937 (nargs, args) 3964 (nargs, args)
3938 int nargs; 3965 int nargs;