SWOv git · main
SWOv - window overview for sway
C 97.3% Markdown 2.4%git clone https://git.christianimmanuel.de/sway/SWOv.gitwget https://git.christianimmanuel.de/sway/SWOv/archive/SWOv.tar.gzcommit_message.txt 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