A C# source generator that generates enums for font codepoint files contained in the project that can then be used for strongly-typed references to the byte value of specific glyphs in the associated font.
$ dotnet add package CodePointEnumGeneratorA C# source generator that generates enums for all font codepoint files are contained in the project as Additional Files.
Each resulting enum can be used for strongly-typed references to the byte value of specific glyphs in the associated font.
<ItemGroup>
<PackageReference Include="CodePointEnumGenerator"
Version="1.0.0.39"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
AddtionalFiles.The Source Generators folder should appear under Dependencies\.NET 9.0 for the project that references the generator. There should also
be a separate generated C# file that contains the enum for each codepoints file in the project. If either or both of these are not the case:
Analyzer.codepoints files have a build action of AdditionalFiles.