[librsvg] rsvg_text_length_text_as_string -> measure_text
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg_text_length_text_as_string -> measure_text
- Date: Thu, 7 Dec 2017 00:57:42 +0000 (UTC)
commit fa421d2297490dd912a2ecb3ac4bbbf628ed7ab2
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Dec 6 10:05:18 2017 -0600
rsvg_text_length_text_as_string -> measure_text
rsvg-text.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rsvg-text.c b/rsvg-text.c
index 6c3bae0..e36f179 100644
--- a/rsvg-text.c
+++ b/rsvg-text.c
@@ -250,7 +250,7 @@ length_from_tspan (RsvgNode *node,
gboolean *lastwasspace,
gboolean usetextonly);
-static gdouble rsvg_text_length_text_as_string (RsvgDrawingCtx * ctx, const char *text);
+static gdouble measure_text (RsvgDrawingCtx * ctx, const char *text);
typedef struct {
RsvgDrawingCtx *ctx;
@@ -285,7 +285,7 @@ compute_child_length (RsvgNode *node, gpointer data)
chomped = _rsvg_text_chomp (rsvg_current_state (closure->ctx), string, closure->lastwasspace);
g_string_free (string, TRUE);
- *closure->length += rsvg_text_length_text_as_string (closure->ctx, chomped->str);
+ *closure->length += measure_text (closure->ctx, chomped->str);
g_string_free (chomped, TRUE);
} else {
if (closure->usetextonly) {
@@ -702,7 +702,7 @@ rsvg_text_render_text (RsvgDrawingCtx * ctx, const char *text, gdouble * x, gdou
}
static gdouble
-rsvg_text_length_text_as_string (RsvgDrawingCtx * ctx, const char *text)
+measure_text (RsvgDrawingCtx * ctx, const char *text)
{
PangoLayout *layout;
gint width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]