gpui: Add support for text in SVGs (#26335)
Closes #21319 Before:  After:  Use fontdb to load system fonts and pass it to resvg renderer. This adds a small increase in startup time (around 30ms on my Linux system to traverse fonts on a cold start). In the future once cosmic-text bumps their version of fontdb we could clone the Database from CosmicTextSystem Release Notes: - Added: support for rendering text in SVGs
This commit is contained in:
parent
6a95ec6a64
commit
41c373eff1
3 changed files with 126 additions and 25 deletions
|
@ -98,8 +98,8 @@ profiling.workspace = true
|
|||
rand = { optional = true, workspace = true }
|
||||
raw-window-handle = "0.6"
|
||||
refineable.workspace = true
|
||||
resvg = { version = "0.44.0", default-features = false }
|
||||
usvg = { version = "0.44.0", default-features = false }
|
||||
resvg = { version = "0.45.0", default-features = false, features = ["text", "system-fonts", "memmap-fonts"] }
|
||||
usvg = { version = "0.45.0", default-features = false }
|
||||
schemars.workspace = true
|
||||
seahash = "4.1"
|
||||
semantic_version.workspace = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue