Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-06 | LibGfx: Make ScaledFont::glyph_height() return the pixel height | Andreas Kling | |
This was returning the point height which didn't match BitmapFont and led to bogus line heights in GUI::TextEditor. | |||
2023-01-06 | LibGfx: Remove unused Font::point_size() | Andreas Kling | |
2023-01-06 | LibGfx: Make Font::preferred_line_height() more correct | Andreas Kling | |
Return a float, and fix a bogus calculation of ascender + descender. | |||
2023-01-06 | LibGfx: Remove bogus rounding in FontPixelMetrics::line_spacing() | Andreas Kling | |
2023-01-06 | LibGfx/OpenType: Use typographic metrics when asked to by the OS/2 table | Andreas Kling | |
2023-01-06 | LibVT: Simplify TerminalWidget::widget_size_for_font() | Andreas Kling | |
Reuse the base size calculation from compute_base_size() instead of duplicating it. | |||
2023-01-06 | LibVT: Use font pixel height (pixel_size) when calculating line heights | Andreas Kling | |
2023-01-06 | LibVT: Compute the font metrics once and cache them | Andreas Kling | |
The height of a line or column doesn't change unless the font changes, and we were already caching the line height. This patch extends it so we also cache the column width. | |||
2023-01-06 | LibVT: Fix bug where terminal size got lost on font size change | Andreas Kling | |
When changing the font size, we now resize the terminal widget *before* setting the font. This ensures that we keep the same logical terminal size after the font change. | |||
2023-01-06 | LibCards+Solitaire: Elevate card highlight management to the card stack | Timothy Flynn | |
Instead of indicating which individual cards should be highlighted, card games now indicate which stack is highlighted. This lets the stack draw empty stacks with a highlight (e.g. the Foundation stack in Solitaire). If the stack is non-empty, the stack can delegate highlighting to the top-most card. | |||
2023-01-06 | LibCards: Draw the inside of card highlight rects with rounded corners | Timothy Flynn | |
Currently, the outside of the card highlight has rounded corners, but the inside has square corners. It looks a bit more polished if they are both rounded. | |||
2023-01-06 | LibWeb: Consider percent and fixed widths in table column distribution | Aliaksandr Kalenik | |
Change column distribution to take in account is_length() and is_percentage() width values instead of treating all cells like they have auto width by implementing it in the way described in CSS Tables 3 spec: https://www.w3.org/TR/css-tables-3/#width-distribution-algorithm distribute_width_to_column() is structured to follow schema: w3.org/TR/css-tables-3/images/CSS-Tables-Column-Width-Assignment.svg | |||
2023-01-06 | LibWeb: Use available space to resolve table cells width | Aliaksandr Kalenik | |
It is not possible to use width of containing block to resolve cells width because by the time compute_table_measures() is called row width is not known yet. | |||
2023-01-06 | LibJS: Rename ToIntegerThrowOnInfinity to ToIntegerWithTruncation | BodilessSleeper | |
This commit ticks away two of the boxes in #15525 Temporal commits: tc39/proposal-temporal@f274678 and tc39/proposal-temporal@a63a0fb | |||
2023-01-06 | LibJS: Replace "is not zero" language in Temporal comments | BodilessSleeper | |
This commit ticks away one of the boxes in #15525 Temporal commit: tc39/proposal-temporal@9cd448a | |||
2023-01-05 | LibJS: Add and begin using a completion-compatible string builder | Timothy Flynn | |
ThrowableStringBuilder is a thin wrapper around StringBuilder to map results from the try_* methods to a throw completion. This will let us try to throw on OOM conditions rather than just blowing up. | |||
2023-01-05 | LibWeb: Pass FloatRect to Painter::draw_text in fill_text | VayuDev | |
Don't round float values to int values in CanvasRenderingContext2D::fill_text when passing them to Painter::draw_text. This also fixes a fixme. | |||
2023-01-05 | LibWeb: Return floats from color stop resolution functions | MacDue | |
These don't deal with pixels so should not return CSSPixels. This removes one suspicious looking cast. | |||
2023-01-05 | LibJS: Convert calendar operation results to floats | BodilessSleeper | |
This commit ticks away one of the boxes in #15525 Temporal commit: tc39/proposal-temporal@11aad40 | |||
2023-01-05 | LibWeb: Use CSS Pixels for viewport rects | Sam Atkins | |
2023-01-05 | LibWeb: Resolve Lengths to CSSPixels | Sam Atkins | |
2023-01-05 | LibWeb: Replace all px Length creation with Length::make_px(CSSPixels) | Sam Atkins | |
2023-01-05 | LibWeb: Convert AbstractImageStyleValue to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb+Browser+WebContent: Convert BoxModelMetrics to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert Layout::Node to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert Layout Boxes to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert LayoutState to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert InlineLevelIterator/LineBox/LineBuilder to new px units | Sam Atkins | |
2023-01-05 | LibWeb: Convert TableFormattingContext to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert SVGFormattingContext to new pixel units | Sam Atkins | |
This is a tiny change but I'm doing it now for the sake of completeness. | |||
2023-01-05 | LibWeb: Convert InlineFormattingContext to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert GridFormattingContext to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert FlexFormattingContext to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert BlockFormattingContext to new pixel units | Sam Atkins | |
2023-01-05 | LibWeb: Convert FormattingContext to new pixel units | Sam Atkins | |
Just FormattingContext and AvailableSpace, and the minor adjustments to make everything else work. | |||
2023-01-05 | LibWeb: Create CSS::Sizes from CSSPixels | Sam Atkins | |
2023-01-05 | LibWeb+WebContent: Convert BrowsingContext to new pixel units | Sam Atkins | |
This fixes a few glitches. We no longer give the page double the width it should have, and we mark the correct area of the page as needing repainting. | |||
2023-01-05 | LibCards: Add a helper to create an action to open Cards Settings | Timothy Flynn | |
This is a useful shortcut to open the settings from within the game rather than having to go through the system menu. | |||
2023-01-05 | LibCards: Support highlighting cards of interest | Timothy Flynn | |
For example, in Solitaire, when dragging a card around, it's common for other implementations to highlight the card underneath the dragged card if that other card is a valid drop target. This implementation will draw a rounded rectangle within the edges of the highlighted card, using a rudimentary complementary color of the board background color. | |||
2023-01-05 | LibGfx+LibPDF: Apply subpixel offset in affine transformation | MacDue | |
2023-01-05 | LibPDF: Use subpixel accurate text rendering | MacDue | |
This just enables the new tricks from LibGfx with the same nice improvements :^) | |||
2023-01-05 | LibGfx: Enable subpixel accurate text rendering in Painter::draw_text() | MacDue | |
This improves kerning and alignment jittering quite a bit :^) | |||
2023-01-05 | LibGfx: Add ability to request glyphs at subpixel offsets to fonts | MacDue | |
This adds the option to pass a subpixel offset when fetching a glyph from a font, this offset is currently snapped to thirds of a pixel (i.e. 0, 0.33, 0.66). This is then used when rasterizing the glyph, which is then cached like usual. Note that when using subpixel offsets you're trading a bit of space for accuracy. With the current third of a pixel offsets you can end up with up to 9 bitmaps per glyph. | |||
2023-01-05 | LibGfx: Avoid rounding/truncating glyph positions till blitting | MacDue | |
This keeps some overloads that accept ints to avoid adding calls to .to_type<float>() all over the place. | |||
2023-01-05 | LibGfx+icc: Print if profile id is valid | Nico Weber | |
2023-01-05 | LibCrypto: Add equality operators for Crypto::Hash::Digest<> | Nico Weber | |
2023-01-05 | LibGfx: Remove useless name from try_load_from_externally_owned_memory() | Nico Weber | |
2023-01-05 | LibGfx: East-const-ify ICCProfile::pcs_illuminant() | Nico Weber | |
2023-01-05 | LibGfx: Store profile id MD5 in ICCProfile | Nico Weber | |
2023-01-05 | LibCrypto: Add a Formatter for Crypto::Hash::Digest<> | Nico Weber | |