mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-04 17:06:33 +00:00
font: shape API, calls shape and outputs some debug
This commit is contained in:
@@ -192,7 +192,10 @@ pub const Buffer = struct {
|
||||
/// long as buffer contents are not modified.
|
||||
pub fn getGlyphInfos(self: Buffer) []GlyphInfo {
|
||||
var length: u32 = 0;
|
||||
const ptr = c.hb_buffer_get_glyph_infos(self.handle, &length);
|
||||
const ptr = @ptrCast(
|
||||
[*c]GlyphInfo,
|
||||
c.hb_buffer_get_glyph_infos(self.handle, &length),
|
||||
);
|
||||
return ptr[0..length];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user