JSPM

  • Created
  • Published
  • Downloads 4481
  • Score
    100M100P100Q135245F

base64 msdf fonts distributed as npm package

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pmndrs/msdfonts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    msdfonts

    base64 msdf fonts distributed as npm packages

    usage with R3/uikit

    import { inter } from '@pmndrs/msdfonts'
    
    ;<FontFamilyProvider inter={inter}>{...children}</FontFamilyProvider>

    How to build

    First Step

    docker build . -t msdfonts
    docker run -v ./docker-volume:/data/:rw -e GOOGLE_FONTS_API_KEY='<insert-api-key>' msdfonts

    for users on ARM architecture (e.g. Apple M-chips)

    docker build . --platform linux/x86_64 -t msdfonts
    docker run -v ./docker-volume:/data/:rw -e GOOGLE_FONTS_API_KEY='<insert-api-key>' --platform linux/x86_64 msdfonts

    Final Step

    Now delete the file in src/index.ts and copy the file docker-volume/index.ts into src/index.ts