Skip to content

Latest commit

 

History

History

samples

Figgle Samples

This samples folder contains tiny console applications that demonstate the ways in which you can use Figgle in your own applications.

Important

For each, be sure to check both:

  • The Program.cs file, for the C# code.
  • The csproj file, for <PackageReference> item(s) and any additional configuration.

Check this table

Sample Description
Basics The easiest option, if you don't care about application size or memory use.
Static text generation For statically-known text, have a source generator embed the rendered text directly into your assembly. Uses the Figgle.Generator package, and uses a single attribute to render the text at compile time. If all Figgle text is rendered this way, you don't have to ship any Figgle assembly with your app.
Embed font from package For dynamic text, using a font from the Figgle.Fonts package via an attribute. The font is embedded directly into your assembly. With this approach, you only need the lightweight Figgle package at runtime.
Embed font from .flf file For dynamic text, using a .flf font file via an attribute and <AdditionalFiles> project item in the .csproj. The font is embedded directly into your assembly. With this approach, you only need the lightweight Figgle package at runtime.