This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import json | |
from robofab import glifLib2 | |
class Glyph (object): | |
def __init__(self): | |
self.outline = []; | |
def getPen(self): | |
return OutlinePen(self.outline) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('harmony-reflect'); | |
function CPSWhitelistHandler(whitelist) { | |
this._whitelist = whitelist; | |
// We can't use "get" and "has" from the prototype of the handler with | |
// at least the nodejs implementations that is available. I don't | |
// know if this is going to change ... | |
// It looks like the internal check is done with Object.hasOwnProperty | |
this.get = function(target, name, receiver) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Constructor(){} | |
var _p = Constructor.prototype; | |
p._rawMethod = function(name){} | |
_p.cachedMethod = memoize(p._rawMethod); | |
//memoize module | |
var _CACHE = new WeakMap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Copyright 2016 Lasse Fister <commander@graphicore.de> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'specimenTools/_BaseWidget' | |
], function( | |
Parent | |
) { | |
"use strict"; | |
/** | |
* Very basic <select> interface to switch between all loaded fonts. | |
* See FamilyChooser for a more advanced interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This are the commands used to update https://github.com/graphicore/googleFontsTools | |
# This file is stored externally, so we can run the commands like this without having to | |
# care for new commits from us in the forked repository. | |
# git remote add upstream git@github.com:google/fonts.git | |
git fetch -f upstream master | |
git checkout -b fonts upstream/master | |
git filter-branch -f --subdirectory-filter tools --prune-empty -- --all | |
git checkout master | |
git rebase fonts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
googleFontsTools/encodings/oriya_unique-glyphs.nam | |
lax language detection: true | |
language: Malayalam 1 % having: 1 needed: 95 missing: 94 ("ഃ" U+0d03,"അ" U+0d05,"ആ" U+0d06,"ഇ" U+0d07,"ഈ" U+0d08,"ഉ" U+0d09,"ഊ" U+0d0a,"ഋ" U+0d0b,"ൠ" U+0d60,"ഌ" U+0d0c … and 84 more) laxSkipped: 0 | |
====================== | |
googleFontsTools/encodings/gurmukhi_unique-glyphs.nam | |
lax language detection: true | |
language: Punjabi 71 % having: 68 needed: 96 missing: 28 ("\" U+005c,"u" U+0075,"0" U+0030,"A" U+0041,"3" U+0033,"C" U+0043,"U" U+0055,"-" U+002d,"–" U+2013,"—" U+2014 … and 18 more) laxSkipped: 3 | |
language: Malayalam 1 % having: 1 needed: 95 missing: 94 ("ഃ" U+0d03,"അ" U+0d05,"ആ" U+0d06,"ഇ" U+0d07,"ഈ" U+0d08,"ഉ" U+0d09,"ഊ" U+0d0a,"ഋ" U+0d0b,"ൠ" U+0d60,"ഌ" U+0d0c … and 84 more) laxSkipped: 0 | |
====================== | |
googleFontsTools/encodings/kannada_unique-glyphs.nam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Glyph Table</title> | |
<script src="../../../lib/bower_components/requirejs/require.js"></script> | |
<script> | |
fontFiles = [ | |
'../../assets/fonts/Jura-Medium.ttf' | |
, '../../assets/fonts/MontserratAlternates-Bold.ttf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jshint esversion:6 | |
const NodeGit = require('nodegit') | |
, path = require('path') | |
, MAX_PARALLEL_JOBS = 8 | |
, REPOSITORY_BASE_PATH = '/tmp/node_git_bug_1495' | |
; | |
/** | |
* Expecting typical github urls here, like: "https://github.com/username/projectname" | |
* returns REPOSITORY_BASE_PATH + "/username_projectname" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from fontTools.ttLib import TTFont | |
# using sleep to | |
from time import sleep | |
import sys | |
if __name__ == '__main__': | |
fonts = [font for font in sys.argv if font.endswith('tf')] | |
ttfonts = [] |
OlderNewer