Skip to content

Problems loading some fonts (e.g. Google fonts) #2

@RedFantom

Description

@RedFantom

Loading some fonts, in this case tested with the Google fonts Roboto and Noto Sans, is not possible with the package. This is due to problems in the fontnameinfo.tcl file, which is unable to parse the required information from the font files.

Additional complications arise with these fonts as they are split into multiple separate files. Loading the fonts with extrafont::core::load works just fine, but only one weight can be loaded at the same time. This can be avoided by merging the different files into a single file using fonttools.

If fonttools is already added as a dependency to make the package work with many different fonts, a rewrite of the Tcl files into Python seems appropriate to make the package more maintainable.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions