MCPcopy Create free account

hub / github.com/alibaba/font-toolkit / functions

Functions274 in github.com/alibaba/font-toolkit

Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/font.rs:94
Methodfmt
( &self, f: &mut ::core::fmt::Formatter<'_>,
src/bindings.rs:26
Methodfonts_info
(&self)
src/wit.rs:152
Methodfrom_buffer
( mut buffer: Vec<u8>, hit_counter: Arc<AtomicU32>, )
src/font.rs:422
Methodfrom_handle
(handle: u32)
src/bindings.rs:111
Methodfrom_key
(key: &'a FontKey)
src/lib.rs:343
Methodget_mut
Gets mutable access to the underlying `T` which represents this resource.
src/bindings.rs:101
Methodglyph_path_string
(&self, c: char)
src/wit.rs:62
Methodhas_glyph
(&self, c: char)
src/wit.rs:12
Methodhas_missing
(&self)
src/wit.rs:280
Methodhash
(&self, state: &mut H)
src/font.rs:68
Methodheight
(&self)
src/ras.rs:462
Methodheight
(&self)
src/wit.rs:79
Methodis_rtl
(&self)
src/wit.rs:251
Functionis_ttf
Returns whether a buffer is TTF font data.
src/font.rs:129
Methodkey
(&self)
src/wit.rs:24
Methodlen
(&self)
src/wit.rs:139
Methodlift
(rep: usize)
src/bindings.rs:163
Methodline_gap
(&self)
src/wit.rs:239
Methodmeasure
Measure a string slice. If certain character is missing, the related [`CharMetrics`] 's `missing` field will be `true`
src/metrics.rs:16
Methodmeasure
(&self, text: String)
src/wit.rs:28
Methodnew
Create a font registry
src/lib.rs:50
Methodnew
()
src/ras.rs:257
Methodnew
(value: String)
src/metrics.rs:175
Methodnew
( path: Option<PathBuf>, variants: Vec<VariationData>, hit_counter: Arc<AtomicU32>,
src/font.rs:540
Methodnew
()
src/wit.rs:122
Methodnew
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
Methodnew
(span: Span<T, M>)
src/metrics/compose.rs:34
Methodnew_with_family
(family: String)
src/font.rs:82
Methodnumber_width_to_str
(width: u16)
src/wit.rs:297
Methodparse_buffer_with_index
(buffer: &[u8], index: u32)
src/font.rs:159
Methodquery
(&self, key: fi::FontKey)
src/wit.rs:131
Methodquery_font_info
(&self, key: fi::FontKey)
src/wit.rs:198
Methodread_data
(&self, data: String)
src/wit.rs:160
Methodremove
(&self, key: font::FontKey)
src/lib.rs:118
Methodremove
(&self, key: fi::FontKey)
src/wit.rs:143
Methodreplace
(&self, other: fi::TextMetrics, fallback: bool)
src/wit.rs:263
Methodset_config
(&self, limit: u32, cache_path: Option<String>)
src/wit.rs:203
Methodset_fallback
Setup a font as fallback. When measure fails, FontKit will use this fallback to measure, if possible
src/lib.rs:68
Methodslice
(&self, start: u32, count: u32)
src/metrics.rs:221
Methodslice
(&self, start: u32, count: u32)
src/wit.rs:243
Methodspan_count
(&self)
src/metrics/compose.rs:308
Methodspans
(&self)
src/metrics/compose.rs:30
Methodsplit_by_width
(&self, font_size: f32, letter_spacing: f32, width: f32)
src/wit.rs:267
Methodstr_width_to_number
(width: String)
src/wit.rs:293
Methodstrikeout_metrics
(&self)
src/font.rs:585
Methodstroke_bitmap
(&self)
src/ras.rs:539
Methodstroke_bitmap
(&self)
src/wit.rs:115
Methodstroke_x
(&self)
src/ras.rs:518
Methodstroke_x
(&self)
src/wit.rs:107
Methodstroke_y
(&self)
src/ras.rs:525
Methodstroke_y
(&self)
src/wit.rs:111
Functiontest_complex_text_wrap
()
tests/basic.rs:78
Functiontest_font_loading
()
tests/basic.rs:6
Functiontest_lru_cache
()
tests/basic.rs:109
Functiontest_search_font
()
tests/basic.rs:46
Functiontest_text_wrap
()
tests/basic.rs:54
Functiontest_variable_font_loading
()
tests/basic.rs:16
Methodtype_guard
()
src/bindings.rs:125
Methodunderline_metrics
(&self)
src/font.rs:589
Methodunderline_metrics
(&self)
src/wit.rs:54
Methodunits
(&self)
src/metrics.rs:322
Methodunits_per_em
(&self)
src/wit.rs:42
Methodvalid
(&self)
src/metrics/compose.rs:287
Methodvalue_string
(&self)
src/metrics/compose.rs:294
Methodwidth
(&self)
src/wit.rs:75
Methodwidth_trim_start
(&self, font_size: f32, letter_spacing: f32)
src/metrics.rs:290
Methodwrite_data
(&self)
src/wit.rs:180
Methodx_max
(&self)
src/ras.rs:483
Methodx_min
(&self)
src/ras.rs:469
Methodx_min
(&self)
src/wit.rs:99
Methody_max
(&self)
src/ras.rs:490
Methody_max
(&self)
src/wit.rs:103
Methody_min
(&self)
src/ras.rs:476
← previous201–274 of 274, ranked by callers