Andreas Kling
95eeb321f9
LibGfx+FontEditor+Base: Add "baseline" value to all fonts
...
This does nothing at the moment but will soon allow us to improve the
vertical positioning of text.
2020-09-19 19:16:22 +02:00
thankyouverycool
126a03f087
LibGfx: Add initial font family matching
...
Fonts following the TypefaceWeightSize naming scheme now associate
with bold weights of the same name and glyph size on construction.
2020-08-16 19:39:46 +02:00
Andreas Kling
0bbced444b
LibGfx: Add dummy Font::x_height() getter
...
Right now we just guess that the x-height is glyph_height/2, which is
obviously not accurate. We currently don't store the x-height in fonts,
so that's something we'll need to fix.
2020-08-07 20:29:32 +02:00
Nico Weber
ce95628b7f
Unicode: Try s/codepoint/code_point/g again
...
This time, without trailing 's'. Ran:
git grep -l 'codepoint' | xargs sed -ie 's/codepoint/code_point/g
2020-08-05 22:33:42 +02:00
Nico Weber
19ac1f6368
Revert "Unicode: s/codepoint/code_point/g"
...
This reverts commit ea9ac3155d
.
It replaced "codepoint" with "code_points", not "code_point".
2020-08-05 22:33:42 +02:00
Andreas Kling
ea9ac3155d
Unicode: s/codepoint/code_point/g
...
Unicode calls them "code points" so let's follow their style.
2020-08-03 19:06:41 +02:00
Nico Weber
3f45e9ab1e
Lagom: Add LibGemini, LibGfx
...
They are dependencies of LibWeb and might be useful for
running test-web on GitHub actions one day.
2020-07-23 23:02:28 +02:00
Hüseyin ASLITÜRK
8b3bd1a54b
LibGfx: Font, extend fonts to 384 character to support LatinExtendedA
2020-05-21 01:19:42 +02:00
Andreas Kling
bc6f469544
LibGfx: Let's make it Font::width(Utf32View)
2020-05-17 22:35:25 +02:00
Andreas Kling
35875b68f5
LibGfx: Add Font::width(u32* codepoints, size_t)
...
This allows you to measure the width of a UTF-32 sequence.
2020-05-17 22:35:25 +02:00
Tibor Nagy
6c32882f05
LibGfx: Do not assert on failed font file loads
...
Return a nullptr to signal an error instead.
2020-03-11 21:27:03 +01:00
Andreas Kling
37fc6c117c
Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller
2020-03-08 13:06:51 +01:00
Tibor Nagy
6fcf4e48f8
LibGfx: Fix accidentally hardcoded font height in Font::clone()
2020-02-23 12:18:17 +01:00
Andreas Kling
98fd6b8767
LibGfx: Add a way to construct an empty Font with arbitrary metrics
2020-02-23 11:10:52 +01:00
Andreas Kling
c39d44fc2e
LibGfx: Rename GraphicsBitmap.{cpp,h} => Bitmap.{cpp,h}
2020-02-06 12:07:05 +01:00
Andreas Kling
9ac94d393e
LibGfx: Rename from LibDraw :^)
2020-02-06 12:04:00 +01:00