… | |
… | |
1734 | // way to configure this and xft is easier to hack in, |
1734 | // way to configure this and xft is easier to hack in, |
1735 | // while x11 has more framework in place already. |
1735 | // while x11 has more framework in place already. |
1736 | // TODO: this is a real resource hog, xft takes ages(?) |
1736 | // TODO: this is a real resource hog, xft takes ages(?) |
1737 | #if XFT && USE_SLOW_LOOKUP |
1737 | #if XFT && USE_SLOW_LOOKUP |
1738 | // grab the first xft font that seems suitable |
1738 | // grab the first xft font that seems suitable |
|
|
1739 | // TOOD: should go first for cellchar (spacing 110) then mono, then else |
1739 | FcPattern *p = FcPatternCreate (); |
1740 | FcPattern *p = FcPatternCreate (); |
1740 | |
1741 | |
1741 | FcCharSet *s = FcCharSetCreate (); |
1742 | FcCharSet *s = FcCharSetCreate (); |
1742 | FcCharSetAddChar (s, unicode); |
1743 | FcCharSetAddChar (s, unicode); |
1743 | FcPatternAddCharSet (p, FC_CHARSET, s); |
1744 | FcPatternAddCharSet (p, FC_CHARSET, s); |