Code Monkey home page Code Monkey logo

font-glyphs's People

Contributors

orangemug avatar pathmapper 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

Watchers

 avatar  avatar  avatar  avatar

font-glyphs's Issues

Cannot install dependencies from npm (Windows)

Cloned repo and tried to install the dependencies by npm install and seems like there's something wrong with windows modules:

> [email protected] install C:\Users\Administrator\Desktop\font-glyphs\node_modules\fontnik
> node-pre-gyp install --fallback-to-build=false || (source ./scripts/install_mason.sh && node-pre-gyp install --build-from-source)

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/fontnik/v0.4.8/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (C:\Users\Administrator\Desktop\font-glyphs\node_modules\fontnik\node_modules\node-pre-gyp\lib\install.js:98:27)
node-pre-gyp ERR! stack     at emitOne (events.js:101:20)
node-pre-gyp ERR! stack     at Request.emit (events.js:188:7)
node-pre-gyp ERR! stack     at Request.onRequestResponse (C:\Users\Administrator\Desktop\font-glyphs\node_modules\fontnik\node_modules\node-pre-gyp\node_modules\request\request.js:986:10)
node-pre-gyp ERR! stack     at emitOne (events.js:96:13)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:188:7)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:362:20)
node-pre-gyp ERR! stack     at emitOne (events.js:96:13)
node-pre-gyp ERR! System Windows_NT 6.2.9200
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\Desktop\\font-glyphs\\node_modules\\fontnik\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\Administrator\Desktop\font-glyphs\node_modules\fontnik
node-pre-gyp ERR! node -v v6.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/fontnik/v0.4.8/node-v48-win32-x64.tar.gz
'source' is not recognized as an internal or external command,
operable program or batch file.
npm WARN font-glyphs No repository field.
npm WARN font-glyphs No license field.
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build=false || (source ./scripts/install_mason.sh && node-pre-gyp install --build-from-source)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build=false || (source ./scripts/install_mason.sh && node-pre-gyp install --build-from-source)'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fontnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build=false || (source ./scripts/install_mason.sh && node-pre-gyp install --build-from-source)
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fontnik
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fontnik
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\Desktop\font-glyphs\npm-debug.log

When i try to get https://mapbox-node-binary.s3.amazonaws.com/fontnik/v0.4.8/node-v48-win32-x64.tar.gz from browser gives me this response:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied</Message>
    <RequestId>2279E292D0D866E7</RequestId>
    <HostId>7pJMd6z/LIt1neGgAiPJAGiQbiiScCZr1ZF8Xi7mUvOE+pwDd+1Z6kNKjBJKOPLaX4kFXZuTr1M=</HostId>
</Error>

Add font: Open Sans

Hi @orangemug,

would you mind adding Open Sans Regular (and the other weights and italics) which are available e.g. here: https://github.com/google/fonts/tree/master/apache/opensans ?

The glyph URL for the Empty Style in Maputnik is not working anymore and I would like to replace it with a free-to-use URL which has Open Sans Regular available because the text-font property defaults to it.

Another option would be to use https://github.com/openmaptiles/fonts for this purpose, but I thought it's a good opportunity to make use of your repo here.

Generate glyphs for any font from google/fonts

Generate glyphs for any google font mounting an index in the base directory

Where the index file would look like

// index.json
{
  fonts: [
    {
      name: "Noto Sans",
      specimen: "https://fonts.google.com/specimen/Noto+Sans",
      styles: [
        {name: "Normal / 400", path: "/glyphs/Noto Sans"},
        {name: "Normal / 400", path: "/glyphs/Noto Sans Bold"},
        {name: "Italic / 700", path: "/glyphs/Noto Sans Italic"},
        {name: "Italic / 700", path: "/glyphs/Noto Sans Bold Italic"}
      ]
    }
    /* ...  */
  ]
}

The idea being that app can load the index.json and have access to glyphs for all the typefaces.

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.