Skip to content

Commit

Permalink
afs.core: hb-subset disable preprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
MIRIMIRIM committed Nov 19, 2024
1 parent 3371c74 commit 72fa379
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AssFontSubset.Core/src/HarfBuzzSubset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public override void CreateFontSubset(SubsetFont ssf, string outputFolder)
sw.Start();

_ = Methods.TryGetFontFace(ssf.OriginalFontFile.FullName, ssf.TrackIndex, out var facePtr);
facePtr = SubsetApis.hb_subset_preprocess(facePtr);
//facePtr = SubsetApis.hb_subset_preprocess(facePtr);

var input = SubsetApis.hb_subset_input_create_or_fail();

Expand All @@ -100,6 +100,8 @@ public override void CreateFontSubset(SubsetFont ssf, string outputFolder)
HBApis.hb_set_add(features, HBApis.hb_tag_from_string((sbyte*)Marshal.StringToHGlobalAnsi(feature), -1));
}

// need drop hinting?

Methods.RenameFontname(input,
(sbyte*)Marshal.StringToHGlobalAnsi($"Processed by AssFontSubset v{System.Reflection.Assembly.GetEntryAssembly()!.GetName().Version}; harfbuzz-subset {hbssVersion}"),
(sbyte*)Marshal.StringToHGlobalAnsi(ssf.RandomNewName),
Expand Down

0 comments on commit 72fa379

Please sign in to comment.