Skip to content

Commit

Permalink
fix: add font context default in other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
eerii committed Mar 7, 2024
1 parent 30ded4f commit 1c294bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
10 changes: 2 additions & 8 deletions components/gfx/platform/macos/font_context.rs
Expand Up @@ -4,16 +4,10 @@

use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct FontContextHandle {
_ctx: (),
}

impl FontContextHandle {
// this is a placeholder until NSFontManager or whatever is bound in here.
pub fn new() -> FontContextHandle {
FontContextHandle { _ctx: () }
}
_ctx: (),
}

impl MallocSizeOf for FontContextHandle {
Expand Down
9 changes: 1 addition & 8 deletions components/gfx/platform/windows/font_context.rs
Expand Up @@ -4,14 +4,7 @@

use malloc_size_of::malloc_size_of_is_0;

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct FontContextHandle;

impl FontContextHandle {
// *shrug*
pub fn new() -> FontContextHandle {
FontContextHandle {}
}
}

malloc_size_of_is_0!(FontContextHandle);

0 comments on commit 1c294bf

Please sign in to comment.