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

Re: Xft and word wrapping

2019-12-02 Thread Lucien Gentis
Hello Радомир, First I recommand this reading : https://keithp.com/~keithp/talks/xtc2001/paper/ It is somehow out of date (particularly XftFont structure description is false), but it permits to understand how Xft works. In order to be sure to get a correct description of data structures,