FontAwesomeは、CSSファイルで次のようにグリフを指定します。
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure
screen readers do not read off random characters that represent icons */
.icon-glass:before { content: "\f000"; }
.icon-music:before { content: "\f001"; }
このフォントからキャンバス要素にアイコンをレンダリングしようとしていますが、これらのグリフにアクセスする方法がわかりません。
ctx.font = "40px FontAwesome";
ctx.fillText("\f000",20,20); // no cigar
これらのグリフをJavaScript文字列で指定するにはどうすればよいですか?