Changeset 522 for trunk/Lucide/plugins


Ignore:
Timestamp:
Jul 31, 2016, 9:14:35 PM (5 years ago)
Author:
Gregg Young
Message:

Add substitute font name to Font dialog Ticket [280]

Location:
trunk/Lucide/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/plugins/ludoc/lutypes.h

    r367 r522  
    8282    char  *type;
    8383    short embedded;
     84    char  *subname;
    8485};
    8586
  • trunk/Lucide/plugins/lupoppler/lupoppler.cpp

    r520 r522  
    871871        fonts->_buffer[i].type = NULL;
    872872        fonts->_buffer[i].embedded = NULL;
     873        fonts->_buffer[i].subname = NULL;
    873874
    874875        FontInfo *info = (FontInfo *)items->get( i );
     
    919920            fonts->_buffer[i].embedded = LU_FONTEMBED_NOT_EMBEDDED;
    920921        }
     922        // SubstituteName
     923        GooString *ggnm = info->getSubstituteName();
     924        if ( ggnm != NULL )
     925        {
     926            fonts->_buffer[i].subname = somstrdup( ggnm->getCString() );
     927                   }
    921928    }
    922929
Note: See TracChangeset for help on using the changeset viewer.