Skip to content

Make FontSystem not self-referencing, second try#95

Closed
geieredgar wants to merge 1 commit intopop-os:mainfrom
geieredgar:font-system-2
Closed

Make FontSystem not self-referencing, second try#95
geieredgar wants to merge 1 commit intopop-os:mainfrom
geieredgar:font-system-2

Conversation

@geieredgar
Copy link
Copy Markdown
Contributor

@geieredgar geieredgar commented Mar 3, 2023

Like #89, this makes the std implementation of FontSystem not self-referencing, which in turn allows defining a db_mut method for mutable access to the underlying fontdb::Database (requested in #75).

Unlike #89, this makes Font self-referencing. Fonts are cached like before, so the performance should stay the same. The only impact on performance should be that FaceInfo is cloned and stored inside the Font to remove the need to borrow from fontdb::Database.

@geieredgar
Copy link
Copy Markdown
Contributor Author

Closing this in favor of #97. The latest changes of #97 don't require cloning FontFace anymore.

@geieredgar geieredgar closed this Mar 14, 2023
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.

1 participant