Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'pub_font_handle'
Browse files Browse the repository at this point in the history
  • Loading branch information
setzer22 committed Dec 15, 2023
2 parents 61316d3 + af4c67d commit 55fdfe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comfy-core/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 55fdfe7

Please sign in to comment.