Skip to content

fonts: Subsetting fonts - #1089

Merged
berniexie merged 49 commits into
d2lang:masterfrom
berniexie:765/custom-fonts
Mar 29, 2023
Merged

berniexie merged 49 commits into
d2lang:masterfrom
berniexie:765/custom-fonts

Conversation

@berniexie

@berniexie berniexie commented Mar 24, 2023 •

Copy link
Copy Markdown
Contributor

Subsets fonts so that our generated SVGs are much smaller

@berniexie berniexie linked an issue Mar 24, 2023 that may be closed by this pull request
@berniexie
berniexie requested review from a team, alixander and katwangy March 25, 2023 00:09
@berniexie
berniexie marked this pull request as ready for review March 25, 2023 00:10
Comment thread d2renderers/d2fonts/d2fonts.go Resolved
@berniexie
berniexie requested a review from alixander March 28, 2023 22:47
Comment thread d2renderers/d2svg/d2svg.go Resolved
Comment thread d2renderers/d2svg/d2svg.go Resolved
@berniexie
berniexie requested a review from alixander March 29, 2023 17:28
Comment thread d2renderers/d2animate/d2animate.go Resolved
Comment thread d2target/class.go Resolved
Comment thread lib/font/font.go Resolved
@berniexie
berniexie requested a review from alixander March 29, 2023 20:05
Comment thread d2target/d2target.go Resolved
Comment thread d2renderers/d2fonts/d2fonts.go Resolved
@berniexie
berniexie requested a review from alixander March 29, 2023 20:55

@alixander alixander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you missed arrowhead labels

Screen Shot 2023-03-29 at 2 12 42 PM

@berniexie
berniexie merged commit d0c22df into d2lang:master Mar 29, 2023
@berniexie
berniexie deleted the 765/custom-fonts branch March 29, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

optimization: Only encode subset of glyphs used in fonts for exports

3 participants