Git Product home page Git Product logo

ttf.js's Introduction

ttf.js

A JavaScript TrueType font engine for modern browsers and Node.js.

Demo

ttf.js Demo - Glyph List

ttf.js Demo - Glyph List

Development Status

work in progress...

Implementation status of TrueType Tables

sfnt header

sfnt versionImplemented
numTablesImplemented
searchRangeImplemented
entrySelectorImplemented
rangeShiftImplemented

Table Directory

Table DirectoryImplemented

Required Tables

cmapPart Implemented
glyfAlmost
headAlmost
hhea-
hmtx-
locaAlmost
maxpAlmost
name-
post-
OS/2-

Optional Tables

cvt-
EBDT-
EBLC-
EBSC-
fpgm-
gasp-
hdmx-
kern-
LTSH-
prep-
PCLT-
VDMX-
vhea-
vmtx-

API

  • ttf.cmap.getGlyphIndex(charactor)
    • Return glyph index array of the given charactor . The array's length equals to number of the font's cmap subtables.
    • The param charactor only accept a single charactor, if you use multiple charactors , only return the result of the first charactor.
    • This API is working in process , only support cmap format0 and part format4. You can try your font with this , if not support, contact me;

TrueType Specifications

ttf.js's People

Contributors

ynakajima avatar allenm avatar

Watchers

蹬 avatar

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.