#9 remove work in progress code for 0.0.5 release

This commit is contained in:
Eliot Jones
2018-12-30 14:21:11 +00:00
parent 4d5518a599
commit 1f6e1f18b3

View File

@@ -2,11 +2,8 @@
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CidFonts;
using CompactFontFormat;
using Core;
using Exceptions;
using Filters;
using Geometry;
@@ -130,7 +127,7 @@
{
var bytes = str.Decode(filterProvider);
var font = compactFontFormatParser.Parse(new CompactFontFormatData(bytes));
return font;
throw new NotSupportedException($"Unsupported subtype for CID font {subtypeName}. Font: {font}");
}
if (subtypeName == NameToken.Type1C)
@@ -259,7 +256,7 @@
private CharacterIdentifierSystemInfo GetSystemInfo(DictionaryToken dictionary)
{
if(!dictionary.TryGet(NameToken.CidSystemInfo, out var cidEntry))
if (!dictionary.TryGet(NameToken.CidSystemInfo, out var cidEntry))
{
throw new InvalidFontFormatException($"No CID System Info was found in the CID Font dictionary: {dictionary}");
}