Skip to content

Commit

Permalink
afs.core: pass name record parse when encodingid is Unicode full repe…
Browse files Browse the repository at this point in the history
…rtoire (fix #12)
  • Loading branch information
MIRIMIRIM committed May 9, 2024
1 parent 994d680 commit de1a983
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AssFontSubset.Core/src/FontParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ public FontInfo GetFontInfo(uint index, HashSet<string>? trueRecord = null)
public static Dictionary<string, string> GetFontInfo(OTFont font)
{
var nameTable = (Table_name)font.GetTable("name")!;

var psName = nameTable.GetString((ushort)Table_name.PlatformID.Windows, 0xffff, (ushort)LanguageIDWindows.en_US, (ushort)NameID.postScriptName);
//var fullName = nameTable.GetString

var ids = new Dictionary<string, GetStringParams>
Expand Down Expand Up @@ -179,7 +177,7 @@ private static Dictionary<string, GetBufResult> GetBuffers(Table_name nameTable,
foreach (var kv in ids)
{
if ((nr.PlatformID == (ushort)Table_name.PlatformID.Windows) &&
(kv.Value.EncID == 0xffff || nr.EncodingID == kv.Value.EncID) &&
((kv.Value.EncID == 0xffff || nr.EncodingID == kv.Value.EncID) && nr.EncodingID != (ushort)EncodingIDWindows.Unicode_full_repertoire) &&
(kv.Value.LangID == 0xffff || nr.LanguageID == kv.Value.LangID) &&
nr.NameID == kv.Value.NameID)
{
Expand Down

0 comments on commit de1a983

Please sign in to comment.