double xpix;
int ttfwidth;
} const widths[] = {
- {
- "--normal",
- "",
- 100, /* xpix */
- 5, /* ttfwidth */
- },
- {
- "--ultra-condensed",
- " Ultra Condensed",
- 50, /* xpix */
- 1, /* ttfwidth */
- },
- {
- "--extra-condensed",
- " Extra Condensed",
- 62.5, /* xpix */
- 2, /* ttfwidth */
- },
- {
- "--condensed",
- " Condensed",
- 75, /* xpix */
- 3, /* ttfwidth */
- },
- {
- "--semi-condensed",
- " Semi Condensed",
- 87.5, /* xpix */
- 4, /* ttfwidth */
- },
- {
- "--extended",
- " Extended",
- 125, /* xpix */
- 7, /* ttfwidth */
- },
+ { "--normal", "", 100.0, 5 },
+ { "--ultra-condensed", " Ultra Condensed", 50.0, 1 },
+ { "--extra-condensed", " Extra Condensed", 62.5, 2 },
+ { "--condensed", " Condensed", 75.0, 3 },
+ { "--semi-condensed", " Semi Condensed", 87.5, 4 },
+ { "--extended", " Extended", 125.0, 7 },
};
static int const nwidths = sizeof(widths) / sizeof(widths[0]);
int weight; /* Expressed in internal units */
int ttfweight;
} const weights[] = {
- {
- "--medium",
- "",
- 0,
- 500,
- },
- {
- "--light",
- " Light",
- 2 * XQTR_S - 100,
- 300,
- },
- {
- "--bold",
- " Bold",
- +50,
- 700,
- },
+ { "--medium", "", 0, 500 },
+ { "--light", " Light", 2 * XQTR_S - 100, 300 },
+ { "--bold", " Bold", +50, 700 },
};
static int const nweights = sizeof(weights) / sizeof(weights[0]);