Giter Site home page Giter Site logo

webfont-generator's Introduction

webfont-generator

Subset and convert one or many OTF/TTF files in EOT, SVG, WOFF and WOFF2.

Built thanks to:

Webfont generator screenshot

Usage with Docker

docker run -ti --name "webfontgen" -p 8080:80 ambroisemaupate/webfontgenerator

Then open your browser on http://localhost:8080, upload your OTF/TTF font file and… enjoy!

Development

Clone this repository, then:

cp config.docker.yml config.yml
composer install
docker-compose up

Then open your browser on http://localhost:8080

webfont-generator's People

Contributors

ambroisemaupate 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webfont-generator's Issues

Font generator without upload

Hi,
I'm trying to make a module to integrate to different kind of platforms that have multiple fonts. My idea is to create a script with receive the directory and filename and then automatically generate the eot, woff, svg font files.
It's any possibility to change your own code to transform to this, so there's no need to upload files?
Thanks for your time and congratulations of your work.
Talk you soon,
Tom

Selectable formats

Hi,
nice work. Would be cool to have checkboxes to select wanted font formats in the output archive.

webfont more development

For webfont more development I created a bare copy for my organization at https://github.com/BeitDina/webfont

Added in webfont\trunk\assets\scripts
tottf.pe
tosvg.pe
tootf.pe
tosfd.pe
toamf.pe

Added in webfont\trunk\develop
config-default-win.yml
This is expanding .exe to the binaries for Windows and has to renamed.
Added to \webfont\trunk\src\Converters
SplitFontDBConverter.php
FontMetricsConverter.php

Added support for otf and eot and new formats to more .php files such as
\webfont\trunk\src\Form\FontType.php
Removed that Latin is checked automatically because is breaking ancient fonts we draw such as: https://github.com/BeitDina/Proto-Sianitic that has unicode-range="U+0591-10918"

Added support for more font subsets from https://www.unicode.org/charts/ in
\webfont\trunk\src\Subsetters\PythonFontSubset.php

Converts one OTF/TTF, SVG, SFD, WOFF and WOFF2 and makes a webfont pack, and we can use https://github.com/BeitDina/SVG-Icon-Font-Generator for the generation of html and css files needed for release with two commands, for example:
\Wamp\bin\php\php5.6.35\php \SVG-Icon-Font-Generator\run.php create-info /Fonts/Proto-Sianitic/Proto-Sianitic.svg /Fonts/Proto-Sianitic/Proto-Sianitic.html
\Wamp\bin\php\php5.6.35\php \SVG-Icon-Font-Generator\run.php create-css /Fonts/Proto-Sianitic/Proto-Sianitic.svg /Fonts/Proto-Sianitic/Proto-Sianitic.css

You can borrow anything you need back to the project.

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.