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
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/font.rs:94
Method
fmt
( &self, f: &mut ::core::fmt::Formatter<'_>,
src/bindings.rs:26
Method
fonts_info
(&self)
src/wit.rs:152
Method
from_buffer
( mut buffer: Vec<u8>, hit_counter: Arc<AtomicU32>, )
src/font.rs:422
Method
from_handle
(handle: u32)
src/bindings.rs:111
Method
from_key
(key: &'a FontKey)
src/lib.rs:343
Method
get_mut
Gets mutable access to the underlying `T` which represents this resource.
src/bindings.rs:101
Method
glyph_path_string
(&self, c: char)
src/wit.rs:62
Method
has_glyph
(&self, c: char)
src/wit.rs:12
Method
has_missing
(&self)
src/wit.rs:280
Method
hash
(&self, state: &mut H)
src/font.rs:68
Method
height
(&self)
src/ras.rs:462
Method
height
(&self)
src/wit.rs:79
Method
is_rtl
(&self)
src/wit.rs:251
Function
is_ttf
Returns whether a buffer is TTF font data.
src/font.rs:129
Method
key
(&self)
src/wit.rs:24
Method
len
(&self)
src/wit.rs:139
Method
lift
(rep: usize)
src/bindings.rs:163
Method
line_gap
(&self)
src/wit.rs:239
Method
measure
Measure a string slice. If certain character is missing, the related [`CharMetrics`] 's `missing` field will be `true`
src/metrics.rs:16
Method
measure
(&self, text: String)
src/wit.rs:28
Method
new
Create a font registry
src/lib.rs:50
Method
new
()
src/ras.rs:257
Method
new
(value: String)
src/metrics.rs:175
Method
new
( path: Option<PathBuf>, variants: Vec<VariationData>, hit_counter: Arc<AtomicU32>,
src/font.rs:540
Method
new
()
src/wit.rs:122
Method
new
Creates a new resource from the specified representation. This function will create a new resource handle by moving `val` onto the heap and then pass
src/bindings.rs:86
Method
new
(span: Span<T, M>)
src/metrics/compose.rs:34
Method
new_with_family
(family: String)
src/font.rs:82
Method
number_width_to_str
(width: u16)
src/wit.rs:297
Method
parse_buffer_with_index
(buffer: &[u8], index: u32)
src/font.rs:159
Method
query
(&self, key: fi::FontKey)
src/wit.rs:131
Method
query_font_info
(&self, key: fi::FontKey)
src/wit.rs:198
Method
read_data
(&self, data: String)
src/wit.rs:160
Method
remove
(&self, key: font::FontKey)
src/lib.rs:118
Method
remove
(&self, key: fi::FontKey)
src/wit.rs:143
Method
replace
(&self, other: fi::TextMetrics, fallback: bool)
src/wit.rs:263
Method
set_config
(&self, limit: u32, cache_path: Option<String>)
src/wit.rs:203
Method
set_fallback
Setup a font as fallback. When measure fails, FontKit will use this fallback to measure, if possible
src/lib.rs:68
Method
slice
(&self, start: u32, count: u32)
src/metrics.rs:221
Method
slice
(&self, start: u32, count: u32)
src/wit.rs:243
Method
span_count
(&self)
src/metrics/compose.rs:308
Method
spans
(&self)
src/metrics/compose.rs:30
Method
split_by_width
(&self, font_size: f32, letter_spacing: f32, width: f32)
src/wit.rs:267
Method
str_width_to_number
(width: String)
src/wit.rs:293
Method
strikeout_metrics
(&self)
src/font.rs:585
Method
stroke_bitmap
(&self)
src/ras.rs:539
Method
stroke_bitmap
(&self)
src/wit.rs:115
Method
stroke_x
(&self)
src/ras.rs:518
Method
stroke_x
(&self)
src/wit.rs:107
Method
stroke_y
(&self)
src/ras.rs:525
Method
stroke_y
(&self)
src/wit.rs:111
Function
test_complex_text_wrap
()
tests/basic.rs:78
Function
test_font_loading
()
tests/basic.rs:6
Function
test_lru_cache
()
tests/basic.rs:109
Function
test_search_font
()
tests/basic.rs:46
Function
test_text_wrap
()
tests/basic.rs:54
Function
test_variable_font_loading
()
tests/basic.rs:16
Method
type_guard
()
src/bindings.rs:125
Method
underline_metrics
(&self)
src/font.rs:589
Method
underline_metrics
(&self)
src/wit.rs:54
Method
units
(&self)
src/metrics.rs:322
Method
units_per_em
(&self)
src/wit.rs:42
Method
valid
(&self)
src/metrics/compose.rs:287
Method
value_string
(&self)
src/metrics/compose.rs:294
Method
width
(&self)
src/wit.rs:75
Method
width_trim_start
(&self, font_size: f32, letter_spacing: f32)
src/metrics.rs:290
Method
write_data
(&self)
src/wit.rs:180
Method
x_max
(&self)
src/ras.rs:483
Method
x_min
(&self)
src/ras.rs:469
Method
x_min
(&self)
src/wit.rs:99
Method
y_max
(&self)
src/ras.rs:490
Method
y_max
(&self)
src/wit.rs:103
Method
y_min
(&self)
src/ras.rs:476
← previous
201–274 of 274, ranked by callers