software-challenge / gui

Software-Challenge GUI since 2020/21
https://software-challenge.de
10 stars 3 forks source link

feat(style): use Raleway Font #83

Closed jnccd closed 2 years ago

jnccd commented 2 years ago

Closes #82 and unifies gui font with the website font

I didnt find another way to load font variations than to put them into seperate varaibles

xeruf commented 2 years ago

https://docs.oracle.com/javase/8/javafx/api/javafx/scene/text/Font.html#loadFont-java.lang.String-double-

On a successful (non-null) return the font will be registered with the FX graphics system for creation by available constructors and factory methods, and the application should use it in this manner

Maybe we can avoid the extra variables by setting the font by name?

xeruf commented 2 years ago

@niklasCarstensen Ich glaube ich habe gefunden wie es geht - wie gedacht direkt über CSS. Habe es mal frech in deinen Branch gepusht, probier bitte mal aus :)

jnccd commented 2 years ago

Huh wer hätte gedacht, dass die Lösung ist die Dokumentation genau zu lesen Auf Windows funktioniert es auch, also kann es von meiner seite aus gemergt werden