summaryrefslogtreecommitdiff
path: root/src/cairo-font-face-twin.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-12-24 17:00:43 -0500
committerBehdad Esfahbod <behdad@behdad.org>2008-12-24 17:00:43 -0500
commitf980d017d2360634f391eb1129317446bfe42cc9 (patch)
tree0645931c87f16dfdd037830f95de667723572817 /src/cairo-font-face-twin.c
parent1116febb40cb5e5f7eafe97999d1143347819b3f (diff)
downloadcairo-f980d017d2360634f391eb1129317446bfe42cc9.tar.gz
[twin] Remove serif setting
I don't think I'm going to implement serif-drawing soon, so, remove the infrastructure. Can always be added back later.
Diffstat (limited to 'src/cairo-font-face-twin.c')
-rw-r--r--src/cairo-font-face-twin.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/cairo-font-face-twin.c b/src/cairo-font-face-twin.c
index f911005e1..8fb1a1d86 100644
--- a/src/cairo-font-face-twin.c
+++ b/src/cairo-font-face-twin.c
@@ -87,7 +87,6 @@ typedef struct _twin_face_properties {
/* lets have some fun */
cairo_bool_t monospace;
- cairo_bool_t serif;
cairo_bool_t smallcaps;
} twin_face_properties_t;
@@ -127,8 +126,6 @@ parse_field (twin_face_properties_t *props,
const char *s,
int len)
{
- cairo_bool_t sans = FALSE, serif = FALSE;
-
#define MATCH(s1, var, value) \
if (field_matches (s1, s, len)) var = value
@@ -158,12 +155,6 @@ parse_field (twin_face_properties_t *props,
else MATCH ("mono", props->monospace, TRUE);
else MATCH ("monospace", props->monospace, TRUE);
-
- else MATCH ("sans", sans, TRUE);
- else MATCH ("sans-serif", sans, TRUE);
- else MATCH ("serif", serif, TRUE);
-
- props->serif = serif && !sans;
}
static void
@@ -197,7 +188,6 @@ twin_set_face_properties_from_toy (cairo_font_face_t *twin_face,
props->stretch = TWIN_STRETCH_NORMAL;
props->monospace = FALSE;
- props->serif = FALSE;
props->smallcaps = FALSE;
/* fill in props */
@@ -299,6 +289,8 @@ twin_scaled_font_render_glyph (cairo_scaled_font_t *scaled_font,
} info = {FALSE};
cairo_set_tolerance (cr, 0.01);
+ cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
+ cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
/* Prepare face */
@@ -309,15 +301,6 @@ twin_scaled_font_render_glyph (cairo_scaled_font_t *scaled_font,
lw = props->weight * (5.5 / 64 / TWIN_WEIGHT_NORMAL);
cairo_set_line_width (cr, lw);
- cairo_set_miter_limit (cr, M_SQRT2);
- cairo_set_line_join (cr, /* props->serif ?
- CAIRO_LINE_JOIN_MITER : */
- CAIRO_LINE_JOIN_ROUND);
- cairo_set_line_cap (cr, /* props->serif ?
- CAIRO_LINE_CAP_SQUARE : */
- CAIRO_LINE_CAP_ROUND);
-
-
/* stretch */
stretch = 1 + .05 * ((int) props->stretch - (int) TWIN_STRETCH_NORMAL);
cairo_scale (cr, stretch, 1);