add WguiFontSystem, remove FONT_SYSTEM singleton, custom fonts, add Light font weight
there are a few gzip-compressed ttf as for now, looks like variable fonts aren't parsed properly by cosmic_text. Not sure why. Also, we probably need to have a fallback for CJK characters in the future, or just fallback to the built-in ones in the OS.
This commit is contained in:
@@ -100,6 +100,8 @@
|
||||
<rectangle
|
||||
width="100%"
|
||||
height="48"
|
||||
min_height="48"
|
||||
max_height="48"
|
||||
box_sizing="border_box"
|
||||
round="8"
|
||||
flex_direction="row"
|
||||
@@ -130,7 +132,7 @@
|
||||
|
||||
<!-- Right bottom side -->
|
||||
<div margin_right="16">
|
||||
<label id="label_time" size="16" />
|
||||
<label id="label_time" size="16" weight="light" />
|
||||
</div>
|
||||
</rectangle>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user