about summary refs log tree commit diff
path: root/src/x/font.rs
AgeCommit message (Collapse)Author
11 daysTextSpan is in a separate file from Font nowIrene Knapp
Force-Push: yes Change-Id: I0b036152bbf3f1b198dc5594a94955a563894fc7
11 daysokay, TextLine is fully in useIrene Knapp
Force-Push: yes Change-Id: Iddd05f95b0db3703e0c25e55bc7d55bb6adfbc5b
11 daysthere are now concepts of font lists and text linesIrene Knapp
a "line" is a list of spans much of the layout logic is moved into TextLine, but not yet all of it Change-Id: I2edba34cd9be5a50ac6dc646cd6e2ab2369fca13 Force-Push: yes
2026-11-13reverse-engineer font ascent and descent, and rely on themIrene Knapp
we now do the baseline computation "properly", during setup, rather than during text rendering. this allows us to be consistent about it; prior to this, the two spans of text we draw would often wind up with different baselines. Force-Push: yes Change-Id: Ic2f34c816fc0767d6e54c5415beb516f99cd3069
2026-11-13messing with metricsIrene Knapp
thus far, everything is reverse engineered and documented. we're about as confident as we can be of these descriptions, without searching Usenet for historical nuance or reading the xft source. in future work, it will be necessary to pick some specific characters to measure to reverse-engineer the desirable metrics. Force-Push: yes Change-Id: I54c7afb825909688d5a9b3f80974d76a69655796
2026-11-12okay, all the color stuff is well-organized nowIrene Knapp
since color is one of those "the data is the point" types, rather than one that encapsulates remote state, both the xcb and xft stuff is handled by a single type, Color. Force-Push: yes Change-Id: I192c40b13dd9040897cbf043d5dd84d5a73f607b
2026-11-12move XftDraw pointers into a new wrapper FontGraphicContextIrene Knapp
impl Drop :) Force-Push: yes Change-Id: I2a2a488819c9f03205aade5dd5d119c02dd8a3c2
2026-11-12move some of the font rendering into its own fileIrene Knapp
Force-Push: yes Change-Id: I628d0d05bf75ac781cf6eb6524972b4e61d25e61