Skip to content

Commit

Permalink
Move blitz-dom assets to assets dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Nov 7, 2024
1 parent 6ddc341 commit 44a48ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/blitz-dom/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl Document {

font_ctx
.collection
.register_fonts(include_bytes!("moz-bullet-font.otf").to_vec());
.register_fonts(crate::BULLET_FONT.to_vec());

let mut doc = Self {
guard,
Expand Down
5 changes: 3 additions & 2 deletions packages/blitz-dom/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
//! - `default`: Enables the features listed below.
//! - `tracing`: Enables tracing support.

pub const DEFAULT_CSS: &str = include_str!("../assets/default.css");
pub(crate) const BULLET_FONT: &[u8] = include_bytes!("../assets/moz-bullet-font.otf");

/// The DOM implementation.
///
/// This is the primary entry point for this crate.
Expand Down Expand Up @@ -56,5 +59,3 @@ pub use htmlsink::DocumentHtmlParser;
pub use node::{ElementNodeData, Node, NodeData, TextNodeData};
pub use string_cache::Atom;
pub use viewport::Viewport;

pub const DEFAULT_CSS: &str = include_str!("./default.css");

0 comments on commit 44a48ed

Please sign in to comment.