#decoder #true-type #name #font

ttf-name-decoder

Decoder for names of Truetype font

1 unstable release

0.1.0 Feb 22, 2022

#38 in #true-type

MIT/Apache

12KB
342 lines

ttf-name-decoder

Decoder for names of truetype fonts.

Usage

let platform_id: u16 = 3; // Windows
let encoding_id: u16 = 1; // Unicode
let language_id: u16 = 1033; // English
let name_data: Vec<u8> = get_data();
let result = ttf_name_decoder::decode(&name_data)?;

lib.rs:

This crate create decoder for ttf name record.

Usage

let platform_id: u16 = 3; // Windows
let encoding_id: u16 = 1; // Unicode
let language_id: u16 = 1033; // English
let name_data: Vec<u8> = get_data();
let result = ttf_name_decoder::decode(&name_data)?;

Dependencies

~3MB
~118K SLoC