diff options
author | Caleb Michael Moore <cmoore@src.gnome.org> | 2004-06-14 19:13:37 +0000 |
---|---|---|
committer | Caleb Michael Moore <cmoore@src.gnome.org> | 2004-06-14 19:13:37 +0000 |
commit | 53da9b127d895aafa309f7dcdccdfa2f107990cf (patch) | |
tree | 50400f0deba20823fbfad5675eeb82470159f9ff | |
parent | da96d3f788e3259739aebf65f46c6a7dcfda1953 (diff) | |
download | librsvg-53da9b127d895aafa309f7dcdccdfa2f107990cf.tar.gz |
more text goodness
-rw-r--r-- | rsvg-styles.c | 4 | ||||
-rw-r--r-- | rsvg-text-vectors.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/rsvg-styles.c b/rsvg-styles.c index fdee04d9..da7918e3 100644 --- a/rsvg-styles.c +++ b/rsvg-styles.c @@ -496,8 +496,8 @@ rsvg_parse_style_arg (RsvgHandle *ctx, RsvgState *state, const char *str) } else if (rsvg_css_param_match (str, "font-size")) { - state->font_size = rsvg_css_parse_normalized_length (str + arg_off, ctx->dpi, - (gdouble)ctx->height, state->font_size); + state->font_size = rsvg_css_parse_normalized_length (str + arg_off, ctx->dpi, + (gdouble)ctx->height, state->font_size); state->has_font_size = TRUE; } else if (rsvg_css_param_match (str, "font-family")) diff --git a/rsvg-text-vectors.c b/rsvg-text-vectors.c index fb74a691..5b669c7a 100644 --- a/rsvg-text-vectors.c +++ b/rsvg-text-vectors.c @@ -75,9 +75,9 @@ typedef void (* RsvgTextRenderFunc) (PangoFont *font, #endif /* TODO: stuff these into the RsvgHandle object, expose API for manipulating them */ -#define ANTIALIAS_TEXT 1 -#define HINT_TEXT 1 -#define AUTO_HINT_TEXT 1 +#define ANTIALIAS_TEXT 0 +#define HINT_TEXT 0 +#define AUTO_HINT_TEXT 0 static RenderCtx * rsvg_render_ctx_new (void) @@ -168,7 +168,7 @@ rsvg_text_layout_new (RsvgHandle *ctx, pango_font_description_set_variant (font_desc, state->font_variant); pango_font_description_set_weight (font_desc, state->font_weight); pango_font_description_set_stretch (font_desc, state->font_stretch); - pango_font_description_set_size (font_desc, state->font_size * PANGO_SCALE); + pango_font_description_set_size (font_desc, state->font_size * PANGO_SCALE / ctx->dpi * 72); pango_layout_set_font_description (layout->layout, font_desc); pango_font_description_free (font_desc); @@ -230,8 +230,8 @@ rsvg_text_vector_coords (RenderCtx *ctx, gdouble *x, gdouble *y) { - *x = ctx->offset_x + (long)vector->x / 64; - *y = ctx->offset_y - (long)vector->y / 64; + *x = ctx->offset_x + (double)vector->x / 64.; + *y = ctx->offset_y - (double)vector->y / 64.; } static void |