]> www.fi.muni.cz Git - evince.git/blobdiff - dvi/mdvi-lib/font.c
Updated English (British) translation
[evince.git] / dvi / mdvi-lib / font.c
index ca3436c5ee8f368aab1cc819100beb6af0c29269..fedb7e78a595a580d8257c77f56971ce9f541d5f 100644 (file)
@@ -162,6 +162,7 @@ font_reference(
 {
        DviFont *font;
        DviFontRef *ref;
+       DviFontRef *subfont_ref;
        
        /* see if there is a font with the same characteristics */
        for(font = (DviFont *)fontlist.head; font; font = font->next) {
@@ -185,7 +186,13 @@ font_reference(
        }
        ref = xalloc(DviFontRef);
        ref->ref = font;
+
        font->links++;
+       for(subfont_ref = font->subfonts; subfont_ref; subfont_ref = subfont_ref->next) {
+               /* just adjust the reference counts */
+               subfont_ref->ref->links++;
+       }
+
        ref->fontid = id;
 
        if(LIST(font) != fontlist.head) {