Commit 90bf7ba7 authored by XueShuming's avatar XueShuming
Browse files

remove hisvg_font_map_get_default

parent 9f59bfcf
......@@ -158,8 +158,7 @@ typedef struct _PangoAttrList HiSVGTextAttrList;
typedef struct _PangoAttribute HiSVGTextAttribute;
HiSVGFontMap* hisvg_font_map_get_default ();
HiSVGTextContext* hisvg_create_text_context (HiSVGFontMap* fontmap);
HiSVGTextContext* hisvg_create_text_context ();
void hisvg_text_context_set_resolution (HiSVGTextContext* context, double dpi);
HiSVGTextGravity hisvg_text_context_get_gravity (HiSVGTextContext* context);
HiSVGTextLanguage* hisvg_text_language_from_string (const char *language);
......
......@@ -392,12 +392,10 @@ _set_hisvg_affine (HiSVGCairoRender * render, cairo_matrix_t *affine)
void *
hisvg_cairo_create_text_context (HiSVGDrawingCtx * ctx)
{
HiSVGFontMap *fontmap;
HiSVGTextContext *context;
HiSVGCairoRender *render = HISVG_CAIRO_RENDER (ctx->render);
fontmap = hisvg_font_map_get_default ();
context = hisvg_create_text_context (fontmap);
context = hisvg_create_text_context ();
hisvg_cairo_update_text_context (render->cr, context);
hisvg_text_context_set_resolution (context, ctx->dpi_y);
return context;
......
......@@ -53,14 +53,9 @@ typedef struct _PangoContext HiSVGTextContext;
typedef struct _PangoLayout HiSVGTextContextLayout;
typedef struct _PangoRectangle HiSVGTextRectangle;
HiSVGFontMap* hisvg_font_map_get_default ()
HiSVGTextContext* hisvg_create_text_context ()
{
return pango_cairo_font_map_get_default ();
}
HiSVGTextContext* hisvg_create_text_context (HiSVGFontMap* fontmap)
{
return pango_font_map_create_context (fontmap);
return pango_font_map_create_context (pango_cairo_font_map_get_default ());
}
void hisvg_text_context_set_resolution (HiSVGTextContext* context, double dpi)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment