#Techniques for Anti-Aliasing @font-face on Windows
It all started with an email from a client: Do these fonts look funky to you? The title is prickly.
The font in question was Port Lligat Sans from Google Web Fonts.
| const os = require('os') | |
| const fs = require('fs') | |
| const path = require('path') | |
| const exec = require('child_process').exec | |
| const fontsubset = function(source, text, callback) { | |
| const tmp = path.join(os.tmpdir(), 'tmp.ttf') | |
| const subset = `node_modules/fontsubset/bin/fontsubset -s ${text} ${source} ${tmp}` | |
| const sfntedit = path.resolve(__dirname, '../assets/font/', 'sfntedit') + ' -d vhea ' + tmp |
| graph { | |
| node [shape = rect, style = rounded] | |
| subgraph cluster_moscow { | |
| label = "Moscow" | |
| Berlioz | |
| Bezdomny | |
| Styopa | |
| Rimsky | |
| Varenukha | |
| Master |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| # This script read the latest | |
| # Beijing air quality from stateair | |
| # and send notification to Pushbullet | |
| import json | |
| import urllib2 | |
| from xml.dom import minidom |
#Techniques for Anti-Aliasing @font-face on Windows
It all started with an email from a client: Do these fonts look funky to you? The title is prickly.
The font in question was Port Lligat Sans from Google Web Fonts.
| var util = require('util') | |
| , sqlite3 = require('sqlite3').verbose() | |
| , fs = require('fs') | |
| , mkdirp = require('mkdirp') | |
| var Kobito = function(path) { | |
| this.db = new sqlite3.Database(path) | |
| } | |
| Kobito.prototype = { | |
| execAll: function(sql, callback) { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Test</title> | |
| <link rel="stylesheet" type="text/css" href="style.css" /> | |
| </head> | |
| <body> | |
| <ul class="items"> | |
| <li class="item" data-status='{"liked": false}'> | |
| <div class="item-status"> |