#20 support retrieval of named system fonts for truetype on windows

This commit is contained in:
Eliot Jones
2018-12-22 18:28:49 +00:00
parent d8b5f00fa0
commit ed3792c950
4 changed files with 47 additions and 12 deletions

View File

@@ -12,6 +12,7 @@
using Fonts.Parser;
using Fonts.Parser.Handlers;
using Fonts.Parser.Parts;
using Fonts.SystemFonts;
using Fonts.TrueType.Parser;
using Fonts.Type1.Parser;
using Graphics;
@@ -107,7 +108,7 @@
var fontFactory = new FontFactory(log, new Type0FontHandler(cidFontFactory,
cMapCache,
filterProvider, pdfScanner),
new TrueTypeFontHandler(log, pdfScanner, filterProvider, cMapCache, fontDescriptorFactory, trueTypeFontParser, encodingReader),
new TrueTypeFontHandler(log, pdfScanner, filterProvider, cMapCache, fontDescriptorFactory, trueTypeFontParser, encodingReader, new SystemFontFinder(new TrueTypeFontParser())),
new Type1FontHandler(pdfScanner, cMapCache, filterProvider, fontDescriptorFactory, encodingReader,
new Type1FontParser(new Type1EncryptedPortionParser()),
new CompactFontFormatParser(new CompactFontFormatIndividualFontParser(compactFontFormatIndexReader, new CompactFontFormatTopLevelDictionaryReader(),