fontconfig module: use enum
This commit is contained in:
parent
fcb6a18f37
commit
61efe92e68
@ -301,9 +301,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
style = mkOption {
|
style = mkOption {
|
||||||
type = types.str // {
|
type = types.enum ["none" "slight" "medium" "full"];
|
||||||
check = flip elem ["none" "slight" "medium" "full"];
|
|
||||||
};
|
|
||||||
default = "full";
|
default = "full";
|
||||||
description = ''
|
description = ''
|
||||||
TrueType hinting style, one of <literal>none</literal>,
|
TrueType hinting style, one of <literal>none</literal>,
|
||||||
@ -329,9 +327,7 @@ in
|
|||||||
default = "rgb";
|
default = "rgb";
|
||||||
type = types.enum ["rgb" "bgr" "vrgb" "vbgr" "none"];
|
type = types.enum ["rgb" "bgr" "vrgb" "vbgr" "none"];
|
||||||
description = ''
|
description = ''
|
||||||
Subpixel order, one of <literal>none</literal>,
|
Subpixel order.
|
||||||
<literal>rgb</literal>, <literal>bgr</literal>,
|
|
||||||
<literal>vrgb</literal>, or <literal>vbgr</literal>.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -339,9 +335,7 @@ in
|
|||||||
default = "default";
|
default = "default";
|
||||||
type = types.enum ["none" "default" "light" "legacy"];
|
type = types.enum ["none" "default" "light" "legacy"];
|
||||||
description = ''
|
description = ''
|
||||||
FreeType LCD filter, one of <literal>none</literal>,
|
FreeType LCD filter.
|
||||||
<literal>default</literal>, <literal>light</literal>, or
|
|
||||||
<literal>legacy</literal>.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user