Git Product home page Git Product logo

stmn / font2bitmap Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 2.0 488 KB

๐Ÿ› ๏ธ This tool allows you to convert fonts (ttf, otf, woff) into bitmap fonts (png) just in your browser.

Home Page: https://stmn.itch.io/font2bitmap

License: MIT License

HTML 0.84% JavaScript 99.16%
bitmap-font bitmap bitmap-font-generator bitmap-fonts bitmaps font-bitmap game-development game-font construct3

font2bitmap's Introduction

Font To Bitmap Converter

License: MIT

This simple tool allow you to convert fonts (ttf, woff, otf) into bitmap fonts.

You can accomplish it in 4 ways:

  1. Font upload - you can upload a font file directly from your local files.
  2. Font URL - you can input the direct URL to the font file. Example: https://fonts.gstatic.com/s/pressstart2p/v14/e3t4euO8T-267oIAQAu6jDQyK3nVivNm4I81.woff2.
  3. Stylesheet URL - you can input the URL of the stylesheet (css file) that contains the font you want to convert. Example: https://fonts.googleapis.com/css2?family=Press+Start+2P.
  4. Input autocomplete - you can use the input autocomplete feature to search for a font from Google Fonts by its name.

screenshot.png

Live

Limitations

  • Disabling antialiasing in browsers can be somewhat challenging. If you are using Chrome on MacOS, the feature works smoothly with the style -webkit-font-smoothing: none;. However, if you're on a different OS or using Firefox on MacOS, you may need to disable antialiasing at the browser or system settings level. For Firefox, you can turn off antialiasing by navigating to about:config and setting gfx.text.disable-aa to true.

  • If you enter URL it will not work if the server has disabled 'cross-domain' requests (CORS); however, all public font providers should have disabled it.

Technicals

Under the hood project uses: Vite, Bootstrap 5, AlpineJS

  • Dev: npm run dev
  • Build: npm run build

font2bitmap's People

Contributors

stmn avatar xhxiaiein avatar

Stargazers

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

Watchers

 avatar

Forkers

angluca xhxiaiein

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.