Skip to main content

just_font_scan 0.2.0 copy "just_font_scan: ^0.2.0" to clipboard
just_font_scan: ^0.2.0 copied to clipboard

Scan system font families and their supported weights using platform-native APIs (DirectWrite on Windows, CoreText on macOS).

0.2.0 #

  • feat: macOS support via CoreText (CTFontCollectionCreateFromAvailableFonts)
  • feat: weight mapping from CoreText normalized float (−1.0…1.0) to CSS weight (100–900) using Apple's NSFontWeight buckets
  • feat: . prefix filter on macOS to hide system-internal fonts (e.g. .SFUI-Regular)
  • fix: wrap each macOS scan in an Objective-C autorelease pool to drain CoreText-internal autoreleased objects (prevents ~1.3 MB/scan leak in Dart CLI processes, which have no Cocoa runloop)
  • note: macOS weights are approximations — see README for caveat

0.1.0 #

  • feat: system font family and weight scanning via Windows DirectWrite
  • feat: JustFontScan.scan() returns font families sorted by name with caching
  • feat: JustFontScan.weightsFor() queries supported weights for a specific family
  • fix: COM null guards, absolute DLL paths, proper CoUninitialize for safety
0
likes
0
points
529
downloads

Publisher

verified publisherkihyun1998.com

Weekly Downloads

Scan system font families and their supported weights using platform-native APIs (DirectWrite on Windows, CoreText on macOS).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi

More

Packages that depend on just_font_scan