Closed databasedav closed 1 month ago
Victor Mono Regular has normal font weight that is 400 (this is default weight), Fira Mono Medium has medium font weight that is 500. To use Fira Mono Medium have to set font weight to medium:
attrs = attrs.family(Family::Name("Fira Mono"));
attrs = attrs.weight(FontWeight::MEDIUM);
for example, if i want to use the
FiraMono-Medium.ttf
font packaged with bevy, i have the following codebut specifying
attrs = attrs.family(Family::Name("Fira Mono"));
doesn't seem to do anything, how do i tell whichFamily::Name
string actually maps to the fira mono .ttf?attrs = attrs.family(Family::Name("Victor Mono"));
works as expected