Xft and word wrapping

2019-12-02 Thread Радомир Хаџић
I'm trying to implement word wrapping using Xlib and Xft. I have a few questions and I hope some of you will answer at least some of them. 1. What to set the coordinates to in XftDrawString* functions? For example, if I set them to (0,0), the top of the string is cropped. 2. By what amount to mov

Squares instead of tabs (Xft)

2019-12-06 Thread Радомир Хаџић
Hello. I'm using XftDrawStringUtf8() function to display text. But this function for some reason displays tabs as squares, instead of drawing them the usual way (as spacing), which is what I want. Any way to get Xft to draw them like spacing (ideally, as 4 or 8 space characters)?