2014

the whole world is peaceful.

font-family: Aegyptus


<figure>
	<span class="fig" itemprop="image">𓀀</span>
	<datalist id="fonts">
		<option value="Aegyptus">Aegyptus</option>
	</datalist>
</figure>

↓

<figure>
	<span class="fig" itemprop="image" style="font-family: Aegyptus, serif;">𓀀</span>
	<datalist id="fonts">
		<option value="Aegyptus">Aegyptus</option>
	</datalist>
</figure>
define("components/load_font", ["jquery", "components/gettext", "webfont"], function (e, t, n) {
	var r = t.gettext;
	e(function () {
		var t = e(".codepoint figure .fig");
		if (t.length) {
			var i = e("#fonts option");
			if (i.length) {
				var s = i.eq(0).val(),
					o = e.trim(i.eq(0).text());
				s && n.load({
					custom: {
						families: [s],
						urls: ["/api/font-face/" + encodeURIComponent(s) + ".css"]
					},
					active: function () {
						t.css({
							fontFamily: '"' + o + '", serif'
						});
						var e = t.closest("figure").next("aside");
						e.length && e.find("dl:eq(0)").append("<dt>" + r("Font used above") + "</dt>" + "<dd>" + s + "</dd>")
					}
				})
			}
		}
	})
})
@font-face{font-family:'Aegyptus';src:url('/static/fonts/Aegyptus.eot');
src:url('/static/fonts/Aegyptus.eot?#iefix') format('eot'),url('/static/fonts/Aegyptus.woff') format('woff'),url('/static/fonts/Aegyptus.ttf') format('truetype'),url('/static/fonts/Aegyptus.svg#Aegyptus') format('svg');font-weight:normal;font-style:normal;}

We have embedded George Douros’ great Aegyptus font as webfont. From now on you can view Egyptian Hieroglyphs without installing any additional font. See it in action here: U+13000 EGYPTIAN HIEROGLYPH A001

powered by hatena blog.
the nikki system for lifelogging junkies.

all posts © their original owners.
writing is reusable solely under the BY Creative Commons License.