Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/font-toolkit
/ functions
Functions
274 in github.com/alibaba/font-toolkit
⨍
Functions
274
◇
Types & classes
51
↓ 61 callers
Method
get
Gets access to the underlying `T` which represents this resource.
src/bindings.rs:95
↓ 61 callers
Method
len
(&self)
src/lib.rs:62
↓ 54 callers
Function
run_ctors_once
()
src/bindings.rs:3592
↓ 36 callers
Function
cabi_dealloc
(ptr: *mut u8, size: usize, align: usize)
src/bindings.rs:3626
↓ 27 callers
Function
as_i32
(t: T)
src/bindings.rs:3633
↓ 21 callers
Method
as_ptr
(&self)
src/bindings.rs:148
↓ 17 callers
Function
invalid_enum_discriminant
()
src/bindings.rs:3619
↓ 17 callers
Function
string_lift
(bytes: Vec<u8>)
src/bindings.rs:3595
↓ 15 callers
Function
as_f32
(t: T)
src/bindings.rs:3602
↓ 10 callers
Method
take_handle
(&self)
src/bindings.rs:117
↓ 9 callers
Method
count
(&self)
src/metrics/compose.rs:434
↓ 9 callers
Method
load
(&self)
src/font.rs:468
↓ 7 callers
Method
chars
(&self)
src/wit.rs:271
↓ 7 callers
Function
is_in_front_set
(target: &u32)
src/metrics/arabic.rs:76
↓ 7 callers
Method
width
(&self)
src/metrics/compose.rs:18
↓ 6 callers
Function
bool_lift
(val: u8)
src/bindings.rs:3692
↓ 6 callers
Method
buffer_size
(&self)
src/lib.rs:122
↓ 6 callers
Method
count
(&self)
src/metrics.rs:209
↓ 6 callers
Method
query
(&self, key: &font::FontKey)
src/lib.rs:286
↓ 6 callers
Method
search_fonts_from_path
(&self, path: impl AsRef<Path>)
src/lib.rs:219
↓ 5 callers
Method
append
(&self, other: TextMetrics)
src/metrics/compose.rs:430
↓ 5 callers
Method
finish
(&mut self)
src/ras.rs:265
↓ 5 callers
Method
pop
(&self)
src/metrics/compose.rs:387
↓ 5 callers
Method
value
(&self)
src/metrics/compose.rs:422
↓ 4 callers
Method
bitmap
Rasterize the outline of a glyph for a certain font_size, and a possible stroke. This method is costy
src/ras.rs:42
↓ 4 callers
Method
handle
(&self)
src/bindings.rs:121
↓ 4 callers
Method
into_inner
Consumes this resource and returns the underlying `T`.
src/bindings.rs:106
↓ 4 callers
Method
is_rtl
(&self)
src/metrics.rs:214
↓ 4 callers
Method
is_rtl
(&self)
src/metrics/compose.rs:41
↓ 4 callers
Method
slice
(&self, start: u32, count: u32)
src/metrics/compose.rs:418
↓ 4 callers
Method
units
(&self)
src/metrics/compose.rs:451
↓ 3 callers
Function
char_lift
(val: u32)
src/bindings.rs:3704
↓ 3 callers
Method
check_lru
(&self)
src/lib.rs:129
↓ 3 callers
Method
first_key
(&self)
src/font.rs:413
↓ 3 callers
Function
is_in_behind_set
(target: &u32)
src/metrics/arabic.rs:81
↓ 3 callers
Method
measure
(&self, font_key: &font::FontKey, text: &str)
src/lib.rs:76
↓ 3 callers
Method
replace
(&self, other: Self, fallback: bool)
src/metrics.rs:243
↓ 3 callers
Method
set_path
(&mut self, path: PathBuf)
src/font.rs:417
↓ 3 callers
Method
units_per_em
(&self)
src/font.rs:581
↓ 3 callers
Method
unload
(&self)
src/font.rs:462
↓ 3 callers
Method
variants
(&self)
src/font.rs:536
↓ 2 callers
Method
add_font_from_buffer
(&self, buffer: Vec<u8>)
src/lib.rs:170
↓ 2 callers
Function
calc_distance
(p1: Vector2F, p2: Vector2F)
src/ras.rs:551
↓ 2 callers
Method
content_height
(&self)
src/metrics.rs:310
↓ 2 callers
Function
convert_woff_to_otf
(mut woff_reader: R, mut otf_writer: &mut W)
src/conv/woff.rs:57
↓ 2 callers
Method
duplicate
(&self)
src/metrics/compose.rs:397
↓ 2 callers
Function
font_info
(font: &Font)
src/wit.rs:304
↓ 2 callers
Method
fulfils
(&self, query: &Filter)
src/font.rs:364
↓ 2 callers
Method
height
(&self, font_size: f32, line_height: Option<f32>)
src/metrics.rs:303
↓ 2 callers
Method
height
(&self)
src/metrics/compose.rs:24
↓ 2 callers
Function
is_woff
Returns whether a buffer is WOFF font data.
src/font.rs:119
↓ 2 callers
Function
is_woff2
Returns whether a buffer is WOFF2 font data.
src/font.rs:124
↓ 2 callers
Method
key
(&self)
src/font.rs:593
↓ 2 callers
Method
load_outline
(&mut self, outline: Outline)
src/ras.rs:319
↓ 2 callers
Method
measure_char
Measure the metrics of a single unicode charactor
src/metrics.rs:111
↓ 2 callers
Method
mul_factor
(&mut self, factor: f32)
src/metrics.rs:387
↓ 2 callers
Function
number_width_to_str
(width: u16)
src/font.rs:36
↓ 2 callers
Method
outline
Output the outline instructions of a glyph
src/ras.rs:17
↓ 2 callers
Method
path
(&self)
src/font.rs:498
↓ 2 callers
Method
path
(&self)
src/wit.rs:20
↓ 2 callers
Method
query_font
(&self, key: &font::FontKey)
src/lib.rs:292
↓ 2 callers
Method
replace
(&self, other: TextMetrics, fallback: bool)
src/metrics/compose.rs:438
↓ 2 callers
Function
str_width_to_number
(width: &str)
src/font.rs:20
↓ 2 callers
Method
unwrap_text
(&mut self)
src/metrics/compose.rs:106
↓ 2 callers
Method
width_until
(&self, font_size: f32, letter_spacing: f32, index: usize)
src/metrics.rs:278
↓ 2 callers
Method
wrap_text
(&mut self, width: f32)
src/metrics/compose.rs:148
↓ 1 callers
Method
as_f32
(self)
src/bindings.rs:3609
↓ 1 callers
Method
as_i32
(self)
src/bindings.rs:3640
↓ 1 callers
Method
ascender
(&self)
src/ras.rs:504
↓ 1 callers
Method
ascender
(&self)
src/metrics.rs:314
↓ 1 callers
Method
ascender
(&self)
src/wit.rs:34
↓ 1 callers
Method
close
(&mut self)
src/ras.rs:301
↓ 1 callers
Method
curve_to
(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, x: f32, y: f32)
src/ras.rs:292
↓ 1 callers
Method
descender
(&self)
src/ras.rs:511
↓ 1 callers
Method
descender
(&self)
src/wit.rs:38
↓ 1 callers
Function
do_ligatures
(curr: u32, front: Option<char>, behind: Option<char>)
src/metrics/arabic.rs:108
↓ 1 callers
Method
face
(&self, key: &FontKey)
src/font.rs:502
↓ 1 callers
Function
fix_arabic_ligatures_char
(text: &str)
src/metrics/arabic.rs:169
↓ 1 callers
Function
handle_special_char
0x622,0x623,0x625,0x627
src/metrics/arabic.rs:132
↓ 1 callers
Method
has_glyph
(&self, c: char)
src/font.rs:569
↓ 1 callers
Method
has_missing
(&self)
src/metrics.rs:263
↓ 1 callers
Function
is_otf
Returns whether a buffer is OTF font data.
src/font.rs:139
↓ 1 callers
Function
is_special_char
(target: u32, behind: Option<char>)
src/metrics/arabic.rs:126
↓ 1 callers
Method
is_variable
(&self)
src/font.rs:360
↓ 1 callers
Method
kerning
Check if there's any kerning data between two charactors, units are handled
src/metrics.rs:143
↓ 1 callers
Method
keys
(&self)
src/lib.rs:320
↓ 1 callers
Method
line_gap
(&self)
src/metrics.rs:318
↓ 1 callers
Method
line_gap
(&self)
src/metrics/compose.rs:414
↓ 1 callers
Method
line_to
(&mut self, x: f32, y: f32)
src/ras.rs:281
↓ 1 callers
Method
move_to
(&mut self, x: f32, y: f32)
src/ras.rs:274
↓ 1 callers
Function
need_ligatures
(target: u32)
src/metrics/arabic.rs:86
↓ 1 callers
Function
previous_power_of_two
Hacker's Delight.
src/conv/woff.rs:63
↓ 1 callers
Method
quad_to
(&mut self, x1: f32, y1: f32, x: f32, y: f32)
src/ras.rs:286
↓ 1 callers
Function
remove_obtuse_angle
(outline: &Outline)
src/ras.rs:556
↓ 1 callers
Method
split_by_width
(&self, font_size: f32, letter_spacing: f32, width: f32)
src/metrics/compose.rs:442
↓ 1 callers
Function
tell
(stream: &mut S)
src/conv/woff.rs:71
↓ 1 callers
Method
trim_start
(&self)
src/metrics/compose.rs:376
↓ 1 callers
Method
units
(&self)
src/wit.rs:276
↓ 1 callers
Method
value
(&self)
src/metrics.rs:326
↓ 1 callers
Method
value
(&self)
src/wit.rs:247
next →
1–100 of 274, ranked by callers