Bundle Newsreader serif and apply to hero text
Embeds Newsreader (variable opsz/wght, OFL-licensed) into the ely_app binary via include_bytes!, registers it through GPUI's text_system at startup (chrome::typography::register_serif_fonts), and exposes the SERIF_FAMILY constant for downstream surfaces. Apply the family to every page hero where the design uses ely-serif: home headline, settings/appearance headline, plugin marketplace headline, sync headline, plugin detail name, and the home reading-list cover headline. The OFL license file ships alongside the .ttf assets to satisfy the font's redistribution clause.
This commit is contained in:
@@ -12,6 +12,7 @@ use gpui_component::{IconName, scroll::ScrollableElement};
|
||||
use crate::brand::SYNC_SERVICE_NAME;
|
||||
|
||||
use super::{ElyShell, render_canvas_surface};
|
||||
use crate::shell::chrome::SERIF_FAMILY;
|
||||
|
||||
impl ElyShell {
|
||||
pub(super) fn render_sync_page(
|
||||
@@ -78,6 +79,7 @@ fn render_status_pill(snapshot: &BrowserSnapshot) -> AnyElement {
|
||||
|
||||
fn render_serif_headline() -> AnyElement {
|
||||
div()
|
||||
.font_family(SERIF_FAMILY)
|
||||
.text_size(px(46.0))
|
||||
.font_weight(FontWeight(400.0))
|
||||
.text_color(rgb(colors::INK))
|
||||
|
||||
Reference in New Issue
Block a user