mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
LibGUI: Categorize font families by variant instead of weight
FontPickerWeightModel is no longer necessary as variants contain weight as part of a complete typeface description. This fixes fonts not inventorying correctly in picker when they contained more than bold and regular typefaces. Weight mapping has been moved into LibGfx/FontStyleMapping.h
This commit is contained in:
parent
84ce923850
commit
4d2f349710
4 changed files with 31 additions and 105 deletions
|
@ -31,13 +31,13 @@
|
|||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Weight:"
|
||||
text: "Style:"
|
||||
text_alignment: "CenterLeft"
|
||||
fixed_height: 16
|
||||
}
|
||||
|
||||
@GUI::ListView {
|
||||
name: "weight_list_view"
|
||||
name: "variant_list_view"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue