… | |
… | |
84 | |
84 | |
85 | static void |
85 | static void |
86 | substitute_func (FcPattern *pattern, gpointer data) |
86 | substitute_func (FcPattern *pattern, gpointer data) |
87 | { |
87 | { |
88 | FcPatternAddBool (pattern, FC_HINTING , 1); |
88 | FcPatternAddBool (pattern, FC_HINTING , 1); |
|
|
89 | #ifdef _WIN32 |
89 | FcPatternAddBool (pattern, FC_AUTOHINT, 1); |
90 | FcPatternAddBool (pattern, FC_AUTOHINT, 1); |
|
|
91 | #else |
|
|
92 | FcPatternAddBool (pattern, FC_AUTOHINT, 0); |
|
|
93 | #endif |
90 | } |
94 | } |
91 | |
95 | |
92 | static void |
96 | static void |
93 | layout_update_font (CFClient__Layout self) |
97 | layout_update_font (CFClient__Layout self) |
94 | { |
98 | { |
… | |
… | |
1590 | void glEnd () |
1594 | void glEnd () |
1591 | |
1595 | |
1592 | void glColor (float r, float g, float b, float a = 1.0) |
1596 | void glColor (float r, float g, float b, float a = 1.0) |
1593 | PROTOTYPE: @ |
1597 | PROTOTYPE: @ |
1594 | CODE: |
1598 | CODE: |
1595 | glColor4ub (MIN ((int)r * 256., 255), |
1599 | glColor4ub (MIN ((int)(r * 255.f), 255), |
1596 | MIN ((int)g * 256., 255), |
1600 | MIN ((int)(g * 255.f), 255), |
1597 | MIN ((int)b * 256., 255), |
1601 | MIN ((int)(b * 255.f), 255), |
1598 | MIN ((int)a * 256., 255)); |
1602 | MIN ((int)(a * 255.f), 255)); |
1599 | |
1603 | |
1600 | void glVertex (float x, float y, float z = 0.) |
1604 | void glVertex (float x, float y, float z = 0.) |
1601 | CODE: |
1605 | CODE: |
1602 | glVertex3f (x, y, z); |
1606 | glVertex3f (x, y, z); |
1603 | |
1607 | |