Giter Site home page Giter Site logo

fitfont's People

Contributors

gregoiresage avatar maximdevtweet avatar nivz78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fitfont's Issues

Missing comma in the README after Market_Saturday_200

Just to improve the README if you want to add this.

const myLabel = new FitFont({ 
        id:'myLabel',               // id of your symbol in the index.gui, you can also give an element object e.g. id: document.getElementById('foo')
        font:'Market_Saturday_200',  // name of the generated font folder < we need a comma here

        // Optional
        halign: 'start',            // horizontal alignment : start / middle / end
        valign: 'baseline',         // vertical alignment   : baseline / top / middle / bottom
        letterspacing: 0            // letterspacing...
    })

Installation error on Windows 10 and MacOS

I've wanted to add this library to my Fitbit project, but I run into several problems:
When I run npm i fitfont, I get asked "Copy gui files in your resources folder?", I say yes, it creates the fitfont.gui file, but the install never finishes (does the same if I say no). This happens on Windows 10. When I press CMD+C, I get an error saying I miss fp-ts and gulp-zip dependencies. I install these manually, run the command to generate fonts, but I get an error again. After searching in Google, it turns out Windows has some permission problems with running Python.

Well lucky me, my working laptop is a Macbook, so I tried to generate the font images there.
The errors are much more informative: first, I was missing Xcode. Ok, after installing, and running the generating command, I get this error: ModuleNotFoundError: No module named 'PIL'

I'm totally stuck here. I never worked with Python, don't know how to solve this :/

Feature request : Zoom / Scaling

Any chance of adding the ability to set a scaling for the characters? I understand this would lead to pixelation when zoom factor gets large, but this could be a nice option to avoid the need to export fonts to multiple sizes.

space issue

Steps to reproduce:

  1. Create any custom font
  2. Add a space in the text
  3. Error about character not found should be thrown during the build

App: Char not found in Random_Font_30

How to get dimensions?

How do I calculate the width of the text like I would with myText.getBBox().width or myText.width?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.