このGistはRicty Generator に Source Code Pro を食べさせるためのパッチを参考に、複数ウェイトに対応させたものです。
このパッチは Source Code Pro と日本語フォント (Migu 1M Regular) のバランスを見るテストのためのものであり、以下のような不具合があります。
- ベースライン未調整
- ラインスペース未調整
- いくつかのグリフの不具合 (全角スペース含む)
<?php | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
error_log(var_export($_SERVER, true)); | |
exit; | |
} | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> |
;;; init.el | |
;(setq debug-on-error t) | |
;; =============================================================================== | |
;; | |
;; Environmental discrimination(環境識別) | |
;; | |
;; =============================================================================== | |
(defvar *run-unix-like-p* | |
(or (equal system-type 'gnu/linux) |
some |
<?php | |
interface ExampleInterface{ | |
function getHoge(); | |
function getFuga(); | |
function setAge(int $age); | |
} | |
class Example implements ExampleInterface{ | |
function getHoge(){ | |
} |
// XHR | |
var ajax = function (method, url, data, callback) { | |
var xhr = /*@cc_on!@*/true ? new XMLHttpRequest() : new XDomainRequest(); | |
xhr.timeout = 3000; | |
xhr.ontimeout = function () { | |
alert("timeout"); | |
}; | |
xhr.onerror = function () { | |
alert("error"); | |
}; |
class File | |
def self.append(path, text) | |
File.open( path, "a" ) do |output| | |
output.puts text | |
end | |
end | |
end | |
if $0 == __FILE__ then |
このGistはRicty Generator に Source Code Pro を食べさせるためのパッチを参考に、複数ウェイトに対応させたものです。
このパッチは Source Code Pro と日本語フォント (Migu 1M Regular) のバランスを見るテストのためのものであり、以下のような不具合があります。
javascript:(function(){var e=window.open(null,null,"width=480,height=300,menubar=no,toolbar=no,location=no,status=no,resizable=noscrollbars=no"),t=document.createElement("img"),n=[39,53,29,41,14,20],r=function(){var e=Math.ceil(Math.random()*6),s=Math.ceil(Math.random()*n[e-1]);t.setAttribute("src","http://mogashi.no-ip.org/alice/?ep="+e.toString()+"&no="+s.toString());setTimeout(r,1e4)};t.style.margin="0";e.document.body.style.margin="0";e.document.body.style.padding="0";e.document.body.appendChild(t);r()})() |
require File.expand_path('../boot', __FILE__) | |
# Pick the frameworks you want: | |
require "active_record/railtie" | |
require "action_controller/railtie" | |
require "action_mailer/railtie" | |
require "sprockets/railtie" | |
# require "rails/test_unit/railtie" | |
# Require the gems listed in Gemfile, including any gems |