summaryrefslogtreecommitdiff
path: root/pango/pangoft2-fontcache.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-11-19 21:09:07 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-11-19 21:09:07 +0000
commit4cd0ea80ed9b8d768eb4e736403ae195f18eaccd (patch)
tree282d90f7d521354b3dce213695a802d9a87aa0da /pango/pangoft2-fontcache.c
parentad9f543f410a0e7bbdbadafa42c75bc04ff2be58 (diff)
downloadpango-4cd0ea80ed9b8d768eb4e736403ae195f18eaccd.tar.gz
New file.
2000-11-19 Tor Lillqvist <tml@iki.fi> * README.win32: New file. * pango/fonts.c (pango_font_description_to_filename): New function. As pango_font_description_to_string, but with result that is better suitable as a filename: No spaces or other strange characters, all in lowercase. (pango_font_describe): Implement this function, call the corresponding method. * pango/pango-font.h: Declare pango_font_description_to_filename. * pango/pangowin32.c (pango_win32_font_describe) * pango/pangoft2.c (pango_ft2_font_describe): Implement these. * pango/pangoft2-fontmap.c (pango_ft2_font_entry_get_coverage) * pango/pangowin32-fontmap.c (pango_win32_font_entry_get_coverage): Implement file-based persistent caching of coverages. * pango/pangoft2-private.h (struct _PangoFT2FontEntry) * pango/pangowin32-private.h (struct _PangoWin32FontEntry): Move struct definition here from the -fontmap files. * pango/pango.def: Updates.
Diffstat (limited to 'pango/pangoft2-fontcache.c')
-rw-r--r--pango/pangoft2-fontcache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/pangoft2-fontcache.c b/pango/pangoft2-fontcache.c
index 4d895205..74a03edc 100644
--- a/pango/pangoft2-fontcache.c
+++ b/pango/pangoft2-fontcache.c
@@ -61,7 +61,7 @@ free_cache_entry (PangoFT2OA *oa,
{
FT_Error error;
- PING (("FT_Done_Face (%p)\n", entry->face));
+ PING (("FT_Done_Face (%p)", entry->face));
error = FT_Done_Face (entry->face);
if (error != FT_Err_Ok)
@@ -162,7 +162,7 @@ cache_entry_unref (PangoFT2FontCache *cache,
CacheEntry *entry)
{
entry->ref_count--;
- PING (("face:%p ref_count:%d\n", entry->face, entry->ref_count));
+ PING (("face:%p ref_count:%d", entry->face, entry->ref_count));
if (entry->ref_count == 0)
{
g_hash_table_remove (cache->forward, &entry->oa);
@@ -209,7 +209,7 @@ pango_ft2_font_cache_load (PangoFT2FontCache *cache,
FT_Face face;
FT_Error error;
- PING (("FT_Open_Face (%s,%ld)\n", args->pathname, face_index));
+ PING (("FT_Open_Face (%s,%ld)", args->pathname, face_index));
error = FT_Open_Face (cache->library, args, face_index, &face);
if (error != FT_Err_Ok)
@@ -219,7 +219,7 @@ pango_ft2_font_cache_load (PangoFT2FontCache *cache,
return NULL;
}
- PING ((" = %p\n", face));
+ PING ((" = %p", face));
entry = g_new (CacheEntry, 1);
@@ -304,6 +304,6 @@ pango_ft2_font_cache_unload (PangoFT2FontCache *cache,
entry = g_hash_table_lookup (cache->back, face);
g_return_if_fail (entry != NULL);
- PING (("pango_ft2_font_cache_unload\n"));
+ PING (("pango_ft2_font_cache_unload"));
cache_entry_unref (cache, entry);
}