Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Erk-/programmable-fonts
/ functions
Functions
57 in github.com/Erk-/programmable-fonts
⨍
Functions
57
◇
Types & classes
24
↓ 12 callers
Function
debug
Write a string to the Harfbuzz debug log.
harfbuzz-wasm/src/lib.rs:463
↓ 5 callers
Method
block_at
(&self, pos: (u8, u8))
tetris/tetris/src/lib.rs:277
↓ 4 callers
Method
next
(&mut self)
tetris/font/src/parser.rs:83
↓ 4 callers
Method
t_blocks
(&self)
tetris/tetris/src/lib.rs:241
↓ 3 callers
Method
can_move
Left, Down, Right
tetris/tetris/src/lib.rs:262
↓ 3 callers
Method
get_glyph
Map a Unicode codepoint to a glyph ID. The `uvs` parameter specifies a Unicode Variation Selector codepoint which is used in conjunction with [format
harfbuzz-wasm/src/lib.rs:96
↓ 3 callers
Method
nop
(&mut self)
tetris/tetris/src/lib.rs:206
↓ 2 callers
Method
draw_inflight
(&self)
tetris/tetris/src/lib.rs:249
↓ 2 callers
Method
get_glyph_h_advance
Get the default advance width for a given glyph ID.
harfbuzz-wasm/src/lib.rs:110
↓ 2 callers
Method
new_block
(&mut self)
tetris/tetris/src/lib.rs:184
↓ 2 callers
Method
next_symbol
(&mut self)
tetris/font/src/parser.rs:46
↓ 2 callers
Method
run
False if the game is over.
tetris/tetris/src/lib.rs:166
↓ 1 callers
Function
block_at
(gameboard: [u16; 20], pos: (u8, u8))
tetris/font/src/lib.rs:41
↓ 1 callers
Method
burn
(&mut self)
tetris/tetris/src/lib.rs:305
↓ 1 callers
Method
clear_lines
(&mut self)
tetris/tetris/src/lib.rs:294
↓ 1 callers
Method
display
(&mut self, gameboard: [u16; 20])
tetris/font/src/ds.rs:141
↓ 1 callers
Method
display
(&mut self, gameboard: [u16; 20])
tetris/playground/src/main.rs:22
↓ 1 callers
Method
find_start
(&mut self)
tetris/font/src/parser.rs:32
↓ 1 callers
Function
full_line
()
tetris/tetris/src/lib.rs:11
↓ 1 callers
Method
glyph_vec
(self, font: &Font)
tetris/font/src/ds.rs:73
↓ 1 callers
Method
key
(&self)
tetris/playground/src/main.rs:16
↓ 1 callers
Method
left
(&mut self)
tetris/tetris/src/lib.rs:214
↓ 1 callers
Method
next_rand
(&mut self)
tetris/tetris/src/lib.rs:175
↓ 1 callers
Method
offset
(&self)
tetris/tetris/src/lib.rs:90
↓ 1 callers
Function
pixel_at
(pos: (u8, u8))
tetris/font/src/lib.rs:53
↓ 1 callers
Function
print_rc
(rc: &ReplaceCord)
tetris/font/src/ds.rs:16
↓ 1 callers
Method
replace_all
(&mut self, f: F)
tetris/font/src/ds.rs:67
↓ 1 callers
Method
replace_one
( &mut self, f: F, )
tetris/font/src/ds.rs:34
↓ 1 callers
Method
right
(&mut self)
tetris/tetris/src/lib.rs:222
↓ 1 callers
Method
rot
(&mut self)
tetris/tetris/src/lib.rs:230
↓ 1 callers
Method
start_end
(mut self)
tetris/font/src/parser.rs:67
↓ 1 callers
Method
step
Returns false if game is over.
tetris/tetris/src/lib.rs:191
↓ 1 callers
Method
to_c
(self)
harfbuzz-wasm/src/lib.rs:414
Method
display
(&mut self, gameboard: [u16; 20])
tetris/tetris/src/display.rs:8
Method
display
(&self, d: &mut D)
tetris/tetris/src/lib.rs:289
Method
drop
(&mut self)
harfbuzz-wasm/src/lib.rs:298
Method
from
(value: u64)
tetris/tetris/src/lib.rs:74
Method
from_c
(info: CGlyphInfo, pos: CGlyphPosition)
harfbuzz-wasm/src/lib.rs:403
Method
from_ref
Initialize a `Font` struct from the reference provided by Harfbuzz to the `shape` function.
harfbuzz-wasm/src/lib.rs:67
Method
get_face
Return the font face object that this font belongs to.
harfbuzz-wasm/src/lib.rs:84
Method
get_glyph_extents
Get the extents for a given glyph ID, in its design position.
harfbuzz-wasm/src/lib.rs:101
Method
get_glyph_name
Get the name of a glyph. If no names are provided by the font, names of the form `gidXXX` are constructed.
harfbuzz-wasm/src/lib.rs:123
Method
get_glyph_v_advance
Get the default vertical advance for a given glyph ID.
harfbuzz-wasm/src/lib.rs:115
Method
get_outline
Get the outline of a glyph as a vector of bezier paths
harfbuzz-wasm/src/lib.rs:154
Method
get_scale
Get the X and Y scale factor applied to this font. This should be divided by the units per em value to provide a scale factor mapping from design uni
harfbuzz-wasm/src/lib.rs:139
Method
get_upem
Get the face's design units per em.
harfbuzz-wasm/src/lib.rs:235
Function
main
()
tetris/playground/src/main.rs:33
Method
new
()
tetris/tetris/src/lib.rs:149
Method
new
(vec: Vec<u8>)
tetris/font/src/parser.rs:20
Method
new
(s: Vec<Glyph>)
tetris/font/src/ds.rs:28
Method
new
()
tetris/playground/src/main.rs:10
Method
reference_table
Get a blob containing the contents of the given binary font table.
harfbuzz-wasm/src/lib.rs:217
Function
shape
( _shape_plan: u32, font_ref: u32, buf_ref: u32, _features: u32, _num_features: u32, )
tetris/font/src/lib.rs:13
Function
shape
( _shape_plan: u32, font_ref: u32, buf_ref: u32, _features: u32, _num_features: u32, )
bad_apple/src/lib.rs:5
Method
shape_with
Call the given Harfbuzz shaper on a buffer reference. For example, `font.shape_with(buffer_ref, "ot")` will run standard OpenType shaping, allowing y
harfbuzz-wasm/src/lib.rs:76
Function
start_end_wrapper
(gs: &[Glyph])
tetris/font/src/ds.rs:97
Method
with_seed
(seed: u64)
tetris/tetris/src/lib.rs:153