From af4c67d075001b2ca515209a3278c001a47c67a7 Mon Sep 17 00:00:00 2001 From: setzer22 Date: Fri, 15 Dec 2023 16:25:36 +0100 Subject: [PATCH] Make font handle internal id public --- comfy-core/src/text.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/comfy-core/src/text.rs b/comfy-core/src/text.rs index dd92233..0a9ee57 100644 --- a/comfy-core/src/text.rs +++ b/comfy-core/src/text.rs @@ -98,8 +98,10 @@ pub fn gen_font_handle() -> FontHandle { ) } +/// Opaque handle to a font. The ID is exposed for debugging purposes. +/// If you set it manually, you're on your own! #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] -pub struct FontHandle(u64); +pub struct FontHandle(pub u64); fn draw_text_internal( text: TextData,