mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +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,17 +31,17 @@ private:
|
|||
RefPtr<Gfx::Font> m_font;
|
||||
|
||||
RefPtr<ListView> m_family_list_view;
|
||||
RefPtr<ListView> m_weight_list_view;
|
||||
RefPtr<ListView> m_variant_list_view;
|
||||
RefPtr<ListView> m_size_list_view;
|
||||
RefPtr<SpinBox> m_size_spin_box;
|
||||
RefPtr<Label> m_sample_text_label;
|
||||
|
||||
Vector<String> m_families;
|
||||
Vector<int> m_weights;
|
||||
Vector<String> m_variants;
|
||||
Vector<int> m_sizes;
|
||||
|
||||
Optional<String> m_family;
|
||||
Optional<int> m_weight;
|
||||
Optional<String> m_variant;
|
||||
Optional<int> m_size;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue