Nimbin[12]?Sway / SWOv / commit_message.txt

SWOv git · main

SWOv - window overview for sway

sway wayland c overview · first commit 2026-08-21 · last commit 2026-11-10 (13 days ago) · synced 1 hour ago · upstream: github.com/nimbin2/SWOv

C 97.3% Markdown 2.4%
git clone https://git.christianimmanuel.de/sway/SWOv.gitwget https://git.christianimmanuel.de/sway/SWOv/archive/SWOv.tar.gz
commit_message.txt 626 B · 13 lines raw
sw_draw: sw_font_h(), a font sized by its line height

sw_font(px) means the em square, which is what a font size is everywhere
else. Some callers do not have a font size, they have a box: the wheel in
swas places a label at cy - height/2 and wants text that tall. For those,
sw_font_h(px) returns the face whose line height is about px, found by
measuring one and scaling.

Both are now available and neither guesses on the other's behalf: ask for a
size with sw_font, for a height with sw_font_h.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SuAfijAAYjLpcVwhCq3AF4