sant_lipi 0.31.0
sant_lipi: ^0.31.0 copied to clipboard
A unicode font for extraordinary Gurmukhi.
Sant Lipi #
A unicode font for extraordinary Gurmukhi.
Sant Lipi is a variable font with the purpose of fully expressing the unique characters and combos found in the database at Shabad OS.
Please see Sant Lipi's GitHub repo to learn more.
Installation #
Import the font
dart pub add sant_lipi
copied to clipboard
Declare the font in the pubspec
flutter:
fonts:
- family: SantLipi
fonts:
- asset: packages/sant_lipi/SantLipi-VF.ttf
copied to clipboard
Usage #
Note: The font weights available are from 100 to 900 (e.g. the 400
below could be 581.321
).
TextStyle(
fontFamily: 'SantLipi',
fontVariations: [
FontVariation('wght', 400),
],
)
copied to clipboard
See Flutter docs: Use a custom font.