 |
|
| |
| HB-RASTER(1) |
User Commands |
HB-RASTER(1) |
hb-raster - Rasterize text with given font.
- hb-raster [OPTION?] [FONT-FILE] [TEXT]
Rasterize text with given font.
- --named-instance=index
- Set named-instance index (default: none)
- --variations=list
- Comma-separated list of font variations
- Variations are set globally. The format for specifying variation settings
follows. All valid CSS font-variation-settings values other than 'normal'
and 'inherited' are also accepted, though, not documented below.
- The format is a tag, optionally followed by an equals sign, followed by a
number. For example:
- "wght=500" "slnt=-7.5"
Text options:
If no text is provided, standard input is used for input.
- --text=string
- Set input text
- --text-file=filename
- Set input text file-name
- -u,
--unicodes=list of hex numbers
- Set input Unicode codepoints
- --single-par
- Treat text as single paragraph
- --features=list
- Comma-separated list of font features
- Features can be enabled or disabled, either globally or limited to
specific character ranges. The format for specifying feature settings
follows. All valid CSS font-feature-settings values other than 'normal'
and the global values are also accepted, though not documented below. CSS
string escapes are not supported. The range indices refer to the positions
between Unicode characters, unless the --utf8-clusters is provided,
in which case range indices refer to UTF-8 byte indices. The position
before the first character is always 0.
- The format is
Python-esque.
- Here is how it all works:
- Syntax:
- Value: Start: End:
- Setting value:
- "kern"
- 1 0 ? # Turn feature on
- "+kern"
- 1 0 ? # Turn feature on
- "-kern"
- 0 0 ? # Turn feature off
- "kern=0"
- 0 0 ? # Turn feature off
- "kern=1"
- 1 0 ? # Turn feature on
- "aalt=2"
- 2 0 ? # Choose 2nd alternate
- Setting index:
- "kern[]"
- 1 0 ? # Turn feature on
- "kern[:]"
- 1 0 ? # Turn feature on
- "kern[5:]"
- 1 5 ? # Turn feature on, partial
- "kern[:5]"
- 1 0 5 # Turn feature on, partial
- "kern[3:5]"
- 1 3 5 # Turn feature on, range
- "kern[3]"
- 1 3 3+1 # Turn feature on, single char
- Mixing it all:
- "aalt[3:5]=2" 2
- 3 5 # Turn 2nd alternate on for range
- 0: Success.
- 1: Option parsing failed.
- 2: Failed loading font face.
- 3: Operation failed.
- 4: Failed setting font functions.
- HB_FACE_LOADER=face-loader; Overrides the default face loader.
- HB_FONT_FUNCS=font-funcs; Overrides the default font-funcs.
- HB_SHAPER_LIST=shaper-list; Overrides the default shaper list.
- hb-view(1), hb-shape(1), hb-raster(1), hb-vector(1), hb-subset(1),
hb-info(1)
Find more information or report bugs at
<https://github.com/harfbuzz/harfbuzz>
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc.
|