Timothy Flynn
34567bc145
LibGfx: Remove single-code point Font::glyph_or_emoji_width API
...
All callers are now aware of multi-code point emoji (and must remain so
going forward).
2023-02-24 20:28:23 +01:00
Aliaksandr Kalenik
1f4106842d
LibGfx: Pass font width to FontDatabase::get()
...
Width need to be passed to `FontDatabase::get()` to resolve font name
unambiguously.
2023-02-05 08:06:06 +00:00
Nico Weber
b8b5e0f680
LibGfx: Move TestFontHandling over to input file approach in 8cfabbcd93
...
Rather than reading files out of /res, put them in a subfolder of
Tests/LibGfx/ and pick the path based on AK_OS_SERENITY.
That way, the tests can also pass when run under lagom.
2023-02-01 08:56:56 -05:00
thankyouverycool
3c1ea2861b
Tests: Update TestFontHandling and add new test
...
Updates BitmapFont testing for fallible writes and adds a new
test font file for use in a new un/masking test.
2022-08-04 02:54:00 +02:00
sin-ack
3f3f45580a
Everywhere: Add sv suffix to strings relying on StringView(char const*)
...
Each of these strings would previously rely on StringView's char const*
constructor overload, which would call __builtin_strlen on the string.
Since we now have operator ""sv, we can replace these with much simpler
versions. This opens the door to being able to remove
StringView(char const*).
No functional changes.
2022-07-12 23:11:35 +02:00
Simon Wanner
206d6ece55
LibGfx: Move other font-related files to LibGfx/Font/
2022-04-09 23:48:18 +02:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
thankyouverycool
96895cd22c
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.
2022-02-01 10:06:26 +01:00
thankyouverycool
41ce6d0cd0
Tests: Conform font tests to new font format
2021-09-19 00:58:59 +02:00
Andreas Kling
8f96d20b86
Tests: Remove default font tests from LibGfx/TestFontHandling
...
The system default font functions now rely on communication with
WindowServer and so we can't really test them here.
2021-05-21 21:02:43 +02:00
Andreas Kling
8a6c37deef
LibGfx: Remove Gfx::FontDatabase::default_bold_fixed_width_font()
...
Ask for a bold_variant() of the default_fixed_width_font() instead.
2021-05-20 20:55:29 +02:00
Andreas Kling
6a012ad79f
LibGfx: Remove Gfx::FontDatabase::default_bold_font()
...
Instead use default_font().bold_variant() in cases where we want a bold
variant of the default font. :^)
2021-05-20 20:55:29 +02:00
Brian Gianforcaro
fd0dbd1ebf
Tests: Establish root Tests directory, move Userland/Tests there
...
With the goal of centralizing all tests in the system, this is a
first step to establish a Tests sub-tree. It will contain all of
the unit tests and test harnesses for the various components in the
system.
2021-05-06 17:54:28 +02:00