Sam Atkins
59778d2b36
LibWeb/CSS: Make CSS Parser::create() infallible
...
Now that `Tokenizer::tokenize()` just returns a String, there are no
errors to propagate, and we can simplify the user code a bit.
2024-07-26 17:29:20 +02:00
Aliaksandr Kalenik
2ead999f2b
LibGfx+LibWeb: Remove typeface classes for WOFF fonts
...
This change removes wrappers inherited from Gfx::Typeface for WOFF and
WOFF2 fonts. The only purpose they served is owning of ttf ByteBuffer
produced by decoding a WOFF/WOFF2 font. Now new FontData class is
responsible for holding ByteBuffer when a font is constructed from
non-externally owned memory.
2024-07-22 15:05:04 +02:00
Aliaksandr Kalenik
c09b5b8df0
LibGfx+LibWeb: Rename Gfx::WOFF2::Font to Gfx::WOFF2::Typeface
...
It's a leftover from VectorFont -> Typeface renaming
2024-07-13 09:31:02 +02:00
Aliaksandr Kalenik
1d2e559e13
LibGfx+LibWeb: Rename Gfx::WOFF::Font to Gfx::WOFF::Typeface
...
It's a leftover from VectorFont -> Typeface renaming
2024-07-13 09:31:02 +02:00
Aliaksandr Kalenik
2f515827c0
Everywhere: Rename Gfx::OpenType::Font to Gfx::OpenType::Typeface
...
It's a leftover from VectorFont -> Typeface renaming
2024-07-13 09:31:02 +02:00
Aliaksandr Kalenik
d5926a3231
LibGfx+LibWeb: Rename Gfx::VectorFont to Gfx::Typeface
...
Typeface is a more widely used name for the data represented by
class previously named VectorFont.
Now:
- Typeface represents decoded font that is not ready for rendering
- ScaledFont represents the combination of typeface and size for
rendering
2024-06-30 13:09:23 +02:00
Daniel Bertalan
bf1f631f25
Everywhere: Write dtors for types with incomplete members out-of-line
...
These are rejected by Clang (19) trunk as a result of
https://github.com/llvm/llvm-project/pull/77753 .
2024-06-16 07:19:56 -04:00
Andrew Kaster
28f728dfdb
LibWeb: Implement FontFace.load() for url() based font sources
2024-05-16 08:02:43 +02:00
Andrew Kaster
60b3436ea3
LibWeb: Support loading FontFaces constructed with binary data
2024-05-14 12:31:10 -06:00
Andrew Kaster
2bc51f08d9
LibWeb: Implement or stub FontFace interface's attribute getters/setters
...
We only support parsing half of these, so the ones we don't recognize
get a friendly exception thrown.
2024-05-11 07:30:29 +01:00
Andrew Kaster
2c31d7dddc
LibWeb: Add stub implementation of CSS FontFace Web API
2024-05-08 10:39:16 +02:00
Andrew Kaster
3a5eabc43b
LibWeb: Rename CSS::FontFace to CSS::ParsedFontFace
...
This implementation detail of CSSFontFaceRule is hogging the name of a
Web API from CSS Font Loading Module Level 3.
2024-05-08 10:39:16 +02:00
Aliaksandr Kalenik
f50bf00814
LibWeb+LibGfx: Move UnicodeRange from LibWeb to LibGfx
...
In upcoming changes UnicodeRange is going to be used in LibGfx in
a class that represents font cascade list.
2023-12-10 17:32:04 +01:00
Andreas Kling
74bdbdf43f
LibWeb: Parse font-weight and font-style inside @font-face rules
2023-05-24 17:19:18 +02:00
Sam Atkins
c2f0b20d6b
LibWeb: Port FontFace to new Strings
2023-02-19 00:51:16 +01:00
Timothy Flynn
f3db548a3d
AK+Everywhere: Rename FlyString to DeprecatedFlyString
...
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so
let's rename it to A) match the name of DeprecatedString, B) write a new
FlyString class that is tied to String.
2023-01-09 23:00:24 +00:00
Sam Atkins
dbbd6d3508
LibWeb: Parse @font-face
unicode-range
descriptor
2022-04-07 21:20:14 +02:00
Sam Atkins
804b8c85e8
LibWeb: Implement initial CSSFontFaceRule and FontFace classes
...
For now, this is the bare minimum that's needed: font-family and src.
2022-03-28 22:25:25 +02:00