mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Everywhere: Fully qualify font names by including their slope
Fixes typefaces of the same weight but different slopes being incorrectly returned for each other by FontDatabase.
This commit is contained in:
parent
87a149c9a4
commit
96895cd22c
Notes:
sideshowbarker
2024-07-17 19:53:40 +09:00
Author: https://github.com/thankyouverycool
Commit: 96895cd22c
Pull-request: https://github.com/SerenityOS/serenity/pull/12237
Issue: https://github.com/SerenityOS/serenity/issues/12226
15 changed files with 39 additions and 25 deletions
|
@ -16,10 +16,11 @@ struct FontSelector {
|
|||
FlyString family;
|
||||
int size { 0 };
|
||||
int weight { 0 };
|
||||
int slope { 0 };
|
||||
|
||||
bool operator==(const FontSelector& other) const
|
||||
{
|
||||
return family == other.family && size == other.size && weight == other.weight;
|
||||
return family == other.family && size == other.size && weight == other.weight && slope == other.slope;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue