An OpenType typeface utilities.
Перейти к файлу
Wiesław Šoltés 10f0f4be83 Update to .NET 6 2021-11-08 22:33:20 +01:00
.github Update build.yml 2021-10-03 22:43:21 +02:00
.nuke Update to .NET 6 2021-11-08 22:33:20 +01:00
build Update to .NET 6 2021-11-08 22:33:20 +01:00
src Update to .NET 6 2021-11-08 22:33:20 +01:00
tests/TypefaceUtil.OpenType.UnitTests Update to .NET 6 2021-11-08 22:33:20 +01:00
.editorconfig Create .editorconfig 2021-07-18 14:17:43 +02:00
.gitattributes Initial commit 2020-06-30 00:17:35 +02:00
.gitignore Update .gitignore 2021-07-21 10:26:53 +02:00
LICENSE.TXT Updated docs 2020-07-02 06:19:12 +00:00
README.md Update README.md 2021-10-17 22:18:23 +02:00
TypefaceUtil.sln Update to .NET 6 2021-11-08 22:33:20 +01:00
azure-pipelines.yml Update to .NET 6 2021-11-08 22:33:20 +01:00
build.cmd Update to .NET 6 2021-11-08 22:33:20 +01:00
build.ps1 Update to .NET 6 2021-11-08 22:33:20 +01:00
build.sh Update to .NET 6 2021-11-08 22:33:20 +01:00
global.json Update to .NET 6 2021-11-08 22:33:20 +01:00
nuget.config Updated build 2020-07-03 10:09:32 +00:00

README.md

TypefaceUtil

Build Status CI

NuGet NuGet

GitHub release Github All Releases Github Releases

An OpenType typeface utilities.

About

TypefaceUtil is a set of OpenType typeface utilities. Currently supported are cmap table format parser for character to glyph index mapping, generation of character png map, svg and xaml export for glyphs.

4dsZT5hb3a

mehzNi5G2T

Usage

TypefaceUtil:
  An OpenType typeface utilities.

Usage:
  TypefaceUtil [options]

Options:
  -f, --inputFiles <inputfiles>              The relative or absolute path to the input files
  -d, --inputDirectory <inputdirectory>      The relative or absolute path to the input directory
  -p, --pattern <pattern>                    The search string to match against the names of files in the input directory [default: *.ttf]
  --fontFamily <fontfamily>                  The input font family
  -o, --outputDirectory <outputdirectory>    The relative or absolute path to the output directory
  --zip                                      Create zip archive from exported files
  --zipFile <zipfile>                        The relative or absolute path to the zip file [default: export.zip]
  --printFontFamilies                        Print available font families
  --printCharacterMaps                       Print character maps info
  --png, --pngExport                         Export text as Png
  --pngTextSize <pngtextsize>                Png text size [default: 20]
  --pngCellSize <pngcellsize>                Png cell size [default: 40]
  --pngColumns <pngcolumns>                  Png number of columns [default: 20]
  --svg, --svgExport                         Export text as Svg
  --svgTextSize <svgtextsize>                Svg text size [default: 16]
  --svgPathFill <svgpathfill>                Svg path fill [default: black]
  --xaml, --xamlExport                       Export text as Xaml
  --xamlTextSize <xamltextsize>              Xaml text size [default: 16]
  --xamlBrush <xamlbrush>                    Xaml brush [default: Black]
  --quiet                                    Set verbosity level to quiet
  --debug                                    Set verbosity level to debug
  --version                                  Show version information
  -?, -h, --help                             Show help and usage information
TypefaceUtil -h
TypefaceUtil --pngExport -f segoeui.ttf
TypefaceUtil --pngExport --fontFamily "Segoe UI"
TypefaceUtil --svgExport -f seguisym.ttf
TypefaceUtil --svgExport --fontFamily "Segoe UI Symbol"
TypefaceUtil --xamlExport -f calibri.ttf
TypefaceUtil --xamlExport --fontFamily "Calibri"
TypefaceUtil -d C:\Windows\Fonts --png --svg --xaml -o export
TypefaceUtil -d C:\Windows\Fonts --png --svg --xaml --zip --zipFile "Windows-Fonts-IconPack.zip"

Build

dotnet build

References

License

TypefaceUtil is licensed under the MIT license.