mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
font: add 1 to the canvas glyph to avoid clipping
This commit is contained in:
@@ -47,8 +47,8 @@ fetch(url.href).then(response =>
|
||||
const font_ptr = malloc(font.byteLength);
|
||||
new Uint8Array(memory.buffer, font_ptr).set(font);
|
||||
|
||||
// Call whatever example you want:
|
||||
const face = face_new(font_ptr, font.byteLength, 72);
|
||||
// Initialize our font face
|
||||
const face = face_new(font_ptr, font.byteLength, 72 /* size in px */);
|
||||
free(font_ptr);
|
||||
|
||||
// Render a glyph
|
||||
|
||||
Reference in New Issue
Block a user