Released 1.1.0 of Textual-Pyfiglet #12
edward-jazzhands
started this conversation in
Show and Tell - Libraries / Widgets
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Adds new abilities for installing fonts and fixes up font validation behavior.
Added
font_pathto theFigletWidgetclass. This allows you to specify a custom font path (str or Path object) to use for the widget. If this is set, it will install and set the font in one step, using theFigletFont.install_fontmethod, thus avoiding the need to callinstall_fontseparately.FigletWidget.install_fontclass method to install a font from a file path (str or Path object). This method is a wrapper over the Pyfiglet font installation method.Changed
fontargument no longer uses the prebuilt fonts list to validate the font. The validation will only fail if the font truly does not exist. It will now work for any fonts that are installed with other methods, such as directly with Pyfiglet.fonts_listclass attribute has been changed to a property that callsFigletFont.getFonts()to scan for all currently available fonts. This list will now always be up to date with any fonts installed using any method.Release Here
Beta Was this translation helpful? Give feedback.
All reactions