Skip to content

Instantly share code, notes, and snippets.

View bramstein's full-sized avatar

Bram Stein bramstein

View GitHub Profile

Syntax

This proposal introduces a new text-kerning property:

text-kerning: [ <upoint> <upoint> <length> ] #

The <upoint> pairs are the left and right code points of a kerning pair and <value> is the kern value. Kerning pairs and values can be repeated multiple times by separating them with a comma. Kerning is applied to all unicode code point pairs in an element that match the kerning pairs specified in the text-kerning property of that element.

<!doctype html>
<html>
<head>
<title>Chrome 33 web font bug</title>
<style>
@font-face {
font-family: TestFont;
/* This is not a real web font, but close enough
to trick browsers into thinking it is. */
src: url(data:font/opentype;base64,);