@@ -161,7 +161,7 @@ void PangoFontInfo::InitFontConfig(bool force_clear, const string& fonts_dir) {
161
161
162
162
static void ListFontFamilies (PangoFontFamily*** families,
163
163
int * n_families) {
164
- PangoFontInfo::InitFontConfig (false , FLAGS_fonts_dir);
164
+ PangoFontInfo::InitFontConfig (false , FLAGS_fonts_dir. c_str () );
165
165
PangoFontMap* font_map = pango_cairo_font_map_get_default ();
166
166
DISABLE_HEAP_LEAK_CHECK;
167
167
pango_font_map_list_families (font_map, families, n_families);
@@ -235,7 +235,7 @@ bool PangoFontInfo::ParseFontDescriptionName(const string& name) {
235
235
// in the font map. Note that if the font is wholly missing, this could
236
236
// correspond to a completely different font family and face.
237
237
PangoFont* PangoFontInfo::ToPangoFont () const {
238
- InitFontConfig (false , FLAGS_fonts_dir);
238
+ InitFontConfig (false , FLAGS_fonts_dir. c_str () );
239
239
PangoFontMap* font_map = pango_cairo_font_map_get_default ();
240
240
PangoContext* context = pango_context_new ();
241
241
pango_cairo_context_set_resolution (context, resolution_);
@@ -512,7 +512,7 @@ bool FontUtils::IsAvailableFont(const char* input_query_desc,
512
512
query_desc.c_str ());
513
513
PangoFont* selected_font = NULL ;
514
514
{
515
- PangoFontInfo::InitFontConfig (false , FLAGS_fonts_dir);
515
+ PangoFontInfo::InitFontConfig (false , FLAGS_fonts_dir. c_str () );
516
516
PangoFontMap* font_map = pango_cairo_font_map_get_default ();
517
517
PangoContext* context = pango_context_new ();
518
518
pango_context_set_font_map (context, font_map);
0 commit comments