gpui: Bring back family and style names in font name suggestions
This commit is contained in:
parent
5d6af532d9
commit
0a0921f88b
3 changed files with 23 additions and 9 deletions
|
@ -201,6 +201,7 @@ pub trait PlatformDispatcher: Send + Sync {
|
|||
pub(crate) trait PlatformTextSystem: Send + Sync {
|
||||
fn add_fonts(&self, fonts: &[Arc<Vec<u8>>]) -> Result<()>;
|
||||
fn all_font_names(&self) -> Vec<String>;
|
||||
fn all_font_families(&self) -> Vec<String>;
|
||||
fn font_id(&self, descriptor: &Font) -> Result<FontId>;
|
||||
fn font_metrics(&self, font_id: FontId) -> FontMetrics;
|
||||
fn typographic_bounds(&self, font_id: FontId, glyph_id: GlyphId) -> Result<Bounds<f32>>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue