by
Anonymous Coward
on 2014年07月22日 20時02分
(#2643855)
http://www.browserleaks.com/canvas#comments [browserleaks.com] // text with lowercase/uppercase/punctuation symbols var txt = "BrowserLeaks,com 1.0"; ctx.textBaseline = "top"; // the most common type ctx.font = "14px 'Arial'"; ctx.textBaseline = "alphabetic"; ctx.fillStyle = "#f60"; ctx.fillRect(125,1,62,20); // some tricks for color mixing ctx.fillStyle = "#069"; ctx.fillText(txt, 2, 15); ctx.fillStyle = "rgba(102, 204, 0, 0.7)"; ctx.fillText(txt, 4, 17); // more explanation? see the Further Reading below...
普通いじらない (スコア:0)
>環境によって使われているフォントやデフォルトのフォントサイズなどが違うため
普通インストールしたそのままだと思うけど。
たまに拡大するときもあるけど、Ctrl + 0で戻すし。
各Windows versionごとMacが分かるだけのような
フォントだけじゃないでしょうが (スコア:0)
フォント以外の情報も利用しているでしょうよ
Re:フォントだけじゃないでしょうが (スコア:0)
http://www.browserleaks.com/canvas#comments [browserleaks.com]
// text with lowercase/uppercase/punctuation symbols
var txt = "BrowserLeaks,com 1.0";
ctx.textBaseline = "top";
// the most common type
ctx.font = "14px 'Arial'";
ctx.textBaseline = "alphabetic";
ctx.fillStyle = "#f60";
ctx.fillRect(125,1,62,20);
// some tricks for color mixing
ctx.fillStyle = "#069";
ctx.fillText(txt, 2, 15);
ctx.fillStyle = "rgba(102, 204, 0, 0.7)";
ctx.fillText(txt, 4, 17);
// more explanation? see the Further Reading below...
とりあえずここはフォントと色とベースライン使ってますね
ただ色こそ環境依存しないだろうし、フォントがデフォルトでベースラインもそんな変な実装なのかな
ほぼ同じ環境のPCが複数台ある人じゃないので検証は出来ません