Giter Site home page Giter Site logo

fontfacegen's People

Contributors

agentk avatar dependabot[bot] avatar jacobdorman avatar julianxhokaxhiu avatar lamervk avatar omoikane avatar perrin4869 avatar sgen avatar threebeluga-machine 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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fontfacegen's Issues

empty eot files

MacOS X 10.10.3

Task:

gulp.task 'fonts', ->

  fontfacegen = require('fontfacegen')
  fs = require('fs')
  path = require('path')
  concat = require('concat-files')

  fonts = fs.readdirSync('src/fonts/')
  cssFiles = []
  for font in fonts
    extension = path.extname(font)
    fontname = path.basename(font, extension)
    fontfacegen
      source:  path.join('src/fonts/', font),
      dest: 'build/fonts/',
      collate: true
      css: "build/fonts/#{fontname}.css"
      css_fontpath: "../fonts/"

Results in:
2015-05-19 18 50 47
โ†‘ eot is empty =(

Deps are installed:

$ brew install fontforge ttf2eot batik
Warning: fontforge-20120731_1 already installed
Warning: ttf2eot-0.0.2-2 already installed
Warning: batik-1.7 already installed

[ttf2svg] Warning: Path must be a string. Received undefined

As the title says, If I try to install

npm install -g ttf2svg

I get that error. If not I get

which: no ttf2svg in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

Any clue? Thanks in advance


Found the issue but I need @agentk or @sgen to fix this. These two lines are causing the issue. In fact on NPM we still have the 0.1.8 version which is anyway broken because is asking for

createDestinationDirectory(path.dirname(config.less));

which is not there in the config dictionary. Please fix this asap otherwise a lot of projects, including mine will be affected and we're literally on our bare feet because of this issue.

Thanks in advance!

Add linting

I propose the airbnb eslint config. Should be rather easy to implement since there is not a lot of code. We will also need to transpile using babel.

Add windows to test matrix

I don't have any experience developing on windows, and I don't know how to install fontforge there inside the CI...
If anyone got any ideas I will give it a try

[Feature request] create subsets of fonts

In languages like Japanese fonts can be several megs big. It would be really useful to have a feature akin to fontsquirrel subset here. Would be able to automatically generate fonts with the characters required and only those characters. For your consideration :)

ttf2woff2 error

Having this error:
(node:16832) V8: /home/andrey/Git/_www/parcel/node_modules/fontfacegen/node_modules/ttf2woff2/jssrc/ttf2woff2.js:3 Invalid asm.js: Invalid member of stdlib

Please upgrade ttf2woff2 dependence to v4

[email protected] dependencies not installed

I'm using fontfacegen in one of my projects, and it's been incredibly helpful. There's just a small issue/bug you may or may not be aware of. Version 0.1.8 on npm doesn't install ttf2woff2 as a dependency. The package.json for [email protected] lists ttf2woff2 as a devDependency rather than an actual dependency. From the looks of the repo here, it looks like there's been pretty significant code restructuring, but would it be possible to patch this bug in the current release?

ttf2svg on Mac

There is a problem with the "ttf2svg" method on Mac OS.

In commands.js you have defined ttf2svg command for Linux and batik-ttf2svg for Mac.
Then in ttf2svg.js you use only ttf2svg without check the operating system.

Windows Test Volunteer

We need someone to test patches on Windows prior to release.

Preferable Windows 7, 8.x, 10?

no ending of task

Hi.
Tried to create font-face from font 28kb weight, ttf format (also tried another fonts).

this is task in gulpfile.js

gulp.task(
'fonts', ['del-fonts'], function(){
return gulp.src(path.src.fonts)
.pipe(plumber({errorHandler: onError})) // plumber
.pipe(gulpfontgen({
/collate: true,
css_fontpath: path.src.fontface,
/
dest: path.build.fonts
}))
.pipe(gulp.dest(path.build.fonts))
.pipe(browserSync.reload({ stream:true }))
.pipe(notify({message: 'FONTS task complete', onLast: true}));
});

task start to run and no finishing until I break it, tried to wait about 30mins.
[11:23:14] Starting 'del-fonts'...
[11:23:14] Finished 'del-fonts' after 8.47 ms
[11:23:14] Starting 'fonts'...
[11:23:14] Finished 'fonts' after 19 ms

no fonts created, no errors in console

CPU is Intel I5 so it seems to be fast enough.

CLI?

Is there a CLI for this library, so I can use it in a npm script?

Push Linux support to NPM

Downloading fontfacegen with npm results in a version pre Linux compatibility commit.

To replicate:

npm install fontfacegen
cat fontfacegen.js

No isLinux check etc.

Just in case its me:

OS: Ubuntu 15.10
fontfacegen: 1.7
NPM: 3.6.0

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.