Cargo Features

KAS-text has no features set by default.

[dependencies]
kas-text = { version = "0.6.0", features = ["num_glyphs", "shaping", "harfbuzz", "markdown", "raster", "serde", "fontdue"] }
num_glyphs

Support num_glyphs method

Affects text::TextApiExt.num_glyphs

shaping = rustybuzz

Enable shaping with the default dependency.

harfbuzz = harfbuzz_rs

Enable shaping via HarfBuzz.

markdown = pulldown-cmark

Enable Markdown parsing

raster = ab_glyph

Serialization is optionally supported for some types:
serde

Glyph rastering is optionally supported; "raster" uses the default backend or a backend may be specified directly:

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ab_glyph
fontdue

pulldown-cmark markdown?

Enables pulldown-cmark ^0.9.1

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

ab_glyph raster?

Affects kas-text::raster

fontdue implicit feature

Enables fontdue ^0.7.2

fontdue:

A simple no_std font parser and rasterizer

Affects kas-text::raster

harfbuzz_rs harfbuzz?
rustybuzz shaping?

Enables rustybuzz ^0.6.0