DEBUG((DBG_TYPE1, "(t1) %s: found `%s' (cached)\n",
name, info.fullfile));
/* this is a cached lookup */
DEBUG((DBG_TYPE1, "(t1) %s: found `%s' (cached)\n",
name, info.fullfile));
/* this is a cached lookup */
DEBUG((DBG_TYPE1, "(t1) resetting device resolution (current: (%d,%d))\n",
t1lib_xdpi, t1lib_ydpi));
DEBUG((DBG_TYPE1, "(t1) resetting device resolution (current: (%d,%d))\n",
t1lib_xdpi, t1lib_ydpi));
font->design = info->tfminfo->design;
/* check if we have a font with this name (maybe at a different size) */
font->design = info->tfminfo->design;
/* check if we have a font with this name (maybe at a different size) */
if(old && old->t1id == -1) {
DEBUG((DBG_TYPE1, "(t1) font `%s' exchanged in hash table\n",
info->fontname));
if(old && old->t1id == -1) {
DEBUG((DBG_TYPE1, "(t1) font `%s' exchanged in hash table\n",
info->fontname));
- mdvi_hash_remove(&t1hash, old->fontname);
- mdvi_hash_add(&t1hash, info->fontname,
+ mdvi_hash_remove(&t1hash, (unsigned char *)old->fontname);
+ mdvi_hash_add(&t1hash, (unsigned char *)info->fontname,
i = info->tfminfo->hic - info->tfminfo->loc + 1;
if(i != font->hic - font->loc + 1) {
/* reset to optimal size */
i = info->tfminfo->hic - info->tfminfo->loc + 1;
if(i != font->hic - font->loc + 1) {
/* reset to optimal size */
/* create the hash table if we have not done so yet */
if(t1hash.nbucks == 0)
mdvi_hash_create(&t1hash, T1_HASH_SIZE);
/* create the hash table if we have not done so yet */
if(t1hash.nbucks == 0)
mdvi_hash_create(&t1hash, T1_HASH_SIZE);
- mdvi_hash_add(&t1hash, info->fontname, info, MDVI_HASH_UNIQUE);
+ mdvi_hash_add(&t1hash, (unsigned char *) info->fontname, info, MDVI_HASH_UNIQUE);
listh_remove(&t1fonts, LIST(info));
/* it it's in the hash table, we may need to replace this by another font */
listh_remove(&t1fonts, LIST(info));
/* it it's in the hash table, we may need to replace this by another font */
/* go through the list and see if there is another
* font with this name */
for(old = (T1Info *)t1fonts.head; old; old = old->next)
if(STREQ(old->fontname, info->fontname))
break;
if(old != NULL)
/* go through the list and see if there is another
* font with this name */
for(old = (T1Info *)t1fonts.head; old; old = old->next)
if(STREQ(old->fontname, info->fontname))
break;
if(old != NULL)
- mdvi_hash_add(&t1hash, old->fontname, old,
+ mdvi_hash_add(&t1hash, (unsigned char *) old->fontname, old,