Users browsing this thread: 1 Guest(s)
venam
Administrators
(16-08-2020, 06:39 PM)phillbush Wrote: My programs use Xft and I have to implement font fallback myself, I used suckless software as a base but tried to simplify the code. I ended up writing a function that, given a character, tries to find a font that supports it: here it is.
I have a similar example here when I tried to recreate Xft for XCB, but I've left it to the reader to guess that they should loop in the rest of the fallback faces. It would be better to additionally search for a font based on a charset parameter, like you did. It isn't ideal, but as you said, it does the trick.


Messages In This Thread
Font Fallback - by venam - 11-08-2020, 04:35 AM
RE: Font Fallback - by z3bra - 11-08-2020, 04:51 AM
RE: Font Fallback - by movq - 11-08-2020, 07:00 AM
RE: Font Fallback - by venam - 11-08-2020, 08:26 AM
RE: Font Fallback - by movq - 11-08-2020, 11:02 AM
RE: Font Fallback - by seninha - 16-08-2020, 06:39 PM
RE: Font Fallback - by venam - 17-08-2020, 02:30 AM