Igtampe.BasicFonts
1.1.0
dotnet add package Igtampe.BasicFonts --version 1.1.0
NuGet\Install-Package Igtampe.BasicFonts -Version 1.1.0
<PackageReference Include="Igtampe.BasicFonts" Version="1.1.0" />
paket add Igtampe.BasicFonts --version 1.1.0
#r "nuget: Igtampe.BasicFonts, 1.1.0"
// Install Igtampe.BasicFonts as a Cake Addin #addin nuget:?package=Igtampe.BasicFonts&version=1.1.0 // Install Igtampe.BasicFonts as a Cake Tool #tool nuget:?package=Igtampe.BasicFonts&version=1.1.0
BasicFonts
BasicFonts draws text using slightly altered DF data stored on a Dictionary On Disk file with a Bfnt Extension. It comes with a singular class which handles everything.
<br/> Hello World!
The following properties and methods are there:
Property | Description |
---|---|
Name | Name of the font |
Author | Author of the font |
Width | Width of this font's characters |
Height | Height of this font's characters |
Method | Result |
---|---|
DrawText() | This method (and overloads) draws text onto the console screen, with default or specified leftpos, toppos, color, and spacing. Fonts can be drawn with any given foreground color. |
Static Method | Result |
---|---|
LoadFromFile() | Loads a font from a BFnt file |
LoadFromResource() | Loads a font from a BFnt File stored as a resource |
Clock
BasicFont also includes a clock, with two clock fonts (Regular, and wide). It's visible here in the BasicClock example
Clocks draw themselves asyncronously, and can be paused, resumed, or stopped once they are RunAsync(). When running asynchronously, only characters that need to be changed will be redrawn, from right to left.
The following properties are included with every clock: |Property|Description| |-|-| |ClockFont|Readonly font that is used to display the clock. It's set when constructed. The font is required to have numbers 0-9, a colon (':'), and the letters 'a', 'p', and 'm'| |HourAdjust|Property to move the hour of this clock a specified number ahead or behind. Used for timezones (Though the clock by default uses the timezone on the computer)| |MilitaryTime|Property to use Military Time (24 hour time)| |ShowSeconds|Property to display seconds| |ShowDate|Property to show date on a line below the second hour number| |BG|Color on the background (Clock must be fully redrawn to take effect)| |FG|Color on the foreground (Clock must be fully redrawn to take effect)| |Width|Calculated width of the rendered (or to be rendered) clock| |Height|Calculated height of the rendered (or to be rendered) clock|
The following methods are included with every clock: |Method|Description| |-|-| |PrepareRenderedDate()|Prepare the text for a rendered date (Publicly accessible just in case)| |PrepareRenderedTime()|Prepare the text for a rendered time with all settings (publicly accessible just in case)| |Init()|Initializes the values for Date and Time to be rendered. Isn't entirely necessary, but makes Width and Height properties valid without rendering the clock| |Render()|Fully renders the clock| |Rerender()|Renders only things that have changed. Rerenders the clock if time to be rendered is of a different length.| |Stop()|Stops the clock if its running asynchronously| |Pause()|Pauses the clock if its running asynchronously. I know it uses an obsolete method but its not because of concurrency or anything we need to have it literally pause the clock pls I need it| |Resume()|Resumes the clock if its running asynchronosuly| |RunAsync()|Starts drawing this clock asynchonously|
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Igtampe.BasicGraphics (>= 1.1.0)
- Igtampe.BasicRender (>= 1.1.0)
- Igtampe.DictionaryOnDisk (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Igtampe.BasicFonts:
Package | Downloads |
---|---|
Igtampe.BasicWindows
BasicWindows is an enhancement to Igtampe.BasicRender, which makes it easy to create, render, and manage user interactions via "windows" on the console. For a full documentation, please see the GitHub Repo for BasicRender, or the included comments. |
GitHub repositories
This package is not used by any popular GitHub repositories.