ãã£ãã
以åããã®æ§ãªè¨äºãæ¸ãã¾ããã
Mozilla ã Firefox OS åãã®çµµæåããªã¼ãã³ã½ã¼ã¹ã§å ¬é - å¼·ç«ã§é²ã
http://d.hatena.ne.jp/nakamura001/20151014/1444840502
ããã«ä»¥ä¸ã®æ§ãªã³ã¡ã³ããé ãã¾ããã
> ã«ã©ã¼æ å ±ãæã¦ãªãã®ã§ãããããªãã§ããç½é»è¡¨ç¤ºã§ãã
FirefoxEmoji.ttf ã®ä¸ãè¦ã¦ã¿ãã¨ãã«ã©ã¼æ å ±ãå ¥ã£ã COLR ãã¼ãã«ã¨ CPAL ãã¼ãã«ãå«ã¾ãã¦ããããã§ãã
Firefox ã Windows ãªã©ãCOLR/CPAL ãã¼ãã«ã«å¯¾å¿ããç°å¢ã§ããã°ã
FirefoxEmoji.ttf ã§ã«ã©ã¼è¡¨ç¤ºãã§ãããã¨æãã¾ãã
ãã®ã³ã¡ã³ãã§ç´¹ä»ããã¦ãããµã¤ãããã¡ãã
won't fix: Landed COLR/CPAL support to render Microsoft's color glyph format
http://wontfix.blogspot.jp/2014/05/landed-colrcpal-support-to-render.html
OpenType ã®æ¡å¼µã§ã«ã©ã¼çµµæåã«ã対å¿ãé²ãããã¦ããã¨ã®è¨äºã§ããã
ããã§èªåã¯ããï¼ã§ãã³ã¬ã£ã¦OpenTypeãã©ã³ãã®è©±ã ããªå梱ããã¦ãããã¡ã¤ã«ã®æ¡å¼µå㯠.otf ãããªã㦠.ttf ãªã®ã§TrueTypeãã©ã³ãã ããæªå¯¾å¿ã£ã¦äºã«æããªãï¼ãã¨æãã¤ã¤ãããå°ãæ å ±ãåéãã¦ã¿ãæããã¡ããçºè¦ã
OpenTypeãã©ã³ãã®æ¡å¼µåã£ã¦ï¼ - Windowsç³»OS | æãã¦ï¼goo
http://oshiete.goo.ne.jp/qa/1070671.html
Windows ã ã¨OpenTypeãã©ã³ãã§ã .otf ãããªãã¦ã .ttf ã使ããã®ãæãã¨è¨è¼ããã¦ãã¾ããã
ãã¡ãã®è¨äºãªã©ã«ãã㨠PostScript Type1 ããã¼ã¹ã«ä½ãããOpenTypeãã©ã³ãã®å ´åã«ã¯æ¡å¼µåã .otf ã TrueType ããã¼ã¹ã¨ãããã©ã³ãã®å ´åã«ã¯æ¡å¼µåã« .ttf ã .ttc ã使ãããããã§ãã
OpenTypeã¨ã¯ï½OTFï½OpenType Font - æå³/解説/説æ/å®ç¾© ï¼ ITç¨èªè¾å ¸
http://e-words.jp/w/OpenType.html
ã¨ããäºã§ãã®æ
å ±ã«å ã㦠GitHub ã®ã½ã¼ã¹ã³ã¼ãã«å梱ããã¦ãããµã³ãã«ã確èªããã¨ã«ã©ã¼çµµæåã使ã£ã¦ãHTMLãã¡ã¤ã«ã®ãµã³ãã«ãè¦ã¤ã以ä¸ã®çµè«ã«ã
ã»å梱ããã¦ãããã©ã³ãã®æ¡å¼µå㯠.ttf ã ãã©OpenTypeãã©ã³ã
ã»ã©ããããã©ã¦ã¶ä¸ã§ãã®ã«ã©ã¼çµµæåã使ãããã
æ¤è¨¼
ãµã³ãã«ã®HTMLãã¡ã¤ã«ãåèã«ä»¥ä¸ã®æ§ãªHTMLãã¡ã¤ã«ãä½æããã©ã³ãã®ã¸ã§ã¼ã«ã¼ã®çµµæåã Firefox OS Emojis ã®çµµæå(å·¦å´)ã使ã£ã¦ãããã® OS æ¨æºã®çµµæå(å³å´)ã使ã£ããã®ã表示ãããµã³ãã«ã§ãã
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> body { padding: 0.5em; } @font-face { font-family: "FirefoxEmoji"; src: url('FirefoxEmoji.ttf') format('truetype'); font-weight: normal; font-style: normal; } #contens { width: 100%; height: 120px; } .emoji { float: left; font-style: normal; font-weight: normal; font-size: 100px; } .firefox_emoji { -moz-osx-font-smoothing: grayscale; font-family: "FirefoxEmoji"; } </style> <title>Firefox Emoji</title> </head> <body> <h2>Firefox Emoji</h2> <div id="contens"> <div class="emoji firefox_emoji">🃏</div> <div class="emoji">🃏</div> </div> </body> </html>
.ttf ãã¡ã¤ã«ãåãé層ã«ç½®ãããã¡ã¤ã«æ§æã¯ãã®æ§ã«æã£ã¦ãã¾ãã
å®éã®åä½ã¯こちらã§ç¢ºèªã§ãã¾ãã
æ¤è¨¼çµæ
ãã£ããã£ç»åãè²¼ã£ã¦ããäºã§ãåããæ§ã«ãã¡ãã®æ¹æ³ã§åé¡ç¡ãã Mac ä¸ã® Firefox ã§ã¯åé¡ç¡ããåä½ãã¾ããã
ãããã Chrome ã Safari ã§è¡¨ç¤ºããå ´å(ãããã Mac ã§ç¢ºèª)ã«ã¯ OpenType ã®æ¡å¼µã§ã®æç»ã§ã¯ç¡ãã TrueType ã®æ å ±ã§ã®æç»ã«æãã¾ããããããã®ãã©ã¦ã¶ã§ã¯ COLR/CPAL ã®æ å ±ã使ã£ãã¬ã³ããªã³ã°ã«ã¯æªå¯¾å¿ã¿ããã§ãã
ãChromeã
ãSafariã
å¾ãiOSçã® Safari ã§ã試ãã¦ã¿ã¾ããã
iOSçã§ãæªå¯¾å¿ã
å ãã¦ã iOS ã ã¨çµµæåã®ãµã¤ãºãå¤æ´ãããªãã¿ããã§ããã
é ããã³ã¡ã³ãã«æ·»ä»ããã¦ããURLã®ãµã¤ãã«ãè¨è¼ãããã¾ããã Windows 㯠COLR/CPAL ã«å¯¾å¿ãã¦ãã¿ãããªã®ã§ Edge ã§ãæ£ããæç»ããã¾ããã OS å´ã«ã¯ã«ã©ã¼çµµæåãå«ã¾ãã¦ãããã©ã³ããç¡ãã¿ããã§ãã¡ãã®ã¬ã³ããªã³ã°çµæã¯å¯ããæãã«â¦
ãã¾ã
Mac ã® Font Book ã«ãã©ã³ãã追å ãã¦ç¢ºèªããæ
å ±ãè²¼ã£ã¦ããã¾ããä»ã®OpenTypeãã©ã³ãã ã¨ã種é¡ãã®ã¨ããã« OpenType TrueType ã¨2ã¤ä¸¦ãã§ããã© Firefox OS Emojis ã®ãã©ã³ãã 㨠TrueType ã ãã§ããããã¼ãããã©ã³ãã«ã¯ãã¾ã詳ãããªããã©ããã§åã£ã¦ãã®ããªãï¼ ãããæ
å ±ã®è¨è¼ãã¹ï¼