Handbook
Glossary
font-with-locale ( font locale -- font' )
Font shaping options
Prev:
font-with-features ( font assoc -- font' )
Next:
font-with-color-fonts ( font ? -- font' )
Vocabulary
fonts
.
shaping
Inputs
font
a font
locale
a nonempty locale name
Outputs
font'
a new font
Word description
Sets the locale used for shaping, for example ar-sa. The default is en-us.
Definition
USING:
fonts.shaping.private
kernel
sequences
strings
;
IN:
fonts.shaping
:
font-with-locale
( font locale -- font' )
dup
string?
[
dup
empty?
not
]
[
f
]
if
[
invalid-font-locale
]
unless
"locale"
swap
font-with-option
;