… | |
… | |
736 | FcPatternAddInteger (p, FC_WEIGHT, prop.weight); |
736 | FcPatternAddInteger (p, FC_WEIGHT, prop.weight); |
737 | |
737 | |
738 | if (FcPatternGet (p, FC_SLANT, 0, &v) != FcResultMatch) |
738 | if (FcPatternGet (p, FC_SLANT, 0, &v) != FcResultMatch) |
739 | FcPatternAddInteger (p, FC_SLANT, prop.slant); |
739 | FcPatternAddInteger (p, FC_SLANT, prop.slant); |
740 | |
740 | |
|
|
741 | #if 0 // clipping unfortunately destroys our precious double-width-characters |
741 | // clip width, we can't do better, or can we? |
742 | // clip width, we can't do better, or can we? |
742 | if (FcPatternGet (p, FC_CHAR_WIDTH, 0, &v) != FcResultMatch) |
743 | if (FcPatternGet (p, FC_CHAR_WIDTH, 0, &v) != FcResultMatch) |
743 | FcPatternAddInteger (p, FC_CHAR_WIDTH, prop.width); |
744 | FcPatternAddInteger (p, FC_CHAR_WIDTH, prop.width); |
|
|
745 | #endif |
744 | |
746 | |
745 | //FcPatternAddBool (p, FC_MINSPACE, 1); |
747 | //FcPatternAddBool (p, FC_MINSPACE, 1); |
746 | |
748 | |
747 | XftResult result; |
749 | XftResult result; |
748 | FcPattern *match = XftFontMatch (DISPLAY, DefaultScreen (DISPLAY), p, &result); |
750 | FcPattern *match = XftFontMatch (DISPLAY, DefaultScreen (DISPLAY), p, &result); |