Yu Gothic UIã« text-spacing-trim ãé©ç¨ããã¨ãã°ã ãèªãã§ãã¦ãæ°ã«ãªã£ã¦ãã¾ã£ãã®ã§ãå®éã«Yu Gothic UIã®ãã¡ã¤ã«ã®ä¸èº«ãéãã¦èª¿ã¹ã¦ã¿ã¾ããã
çºçãã¦ããåé¡
Yu Gothic UIã¯ãWindows 10ããããªã¤ã³ã¹ãã¼ã«ããã¦ããUI表示ç¨ãã©ã³ãã§ãã
ãã®ãã©ã³ããChromeç³»ãã©ã¦ã¶ã§å©ç¨ããã¨ãéµæ¬å¼§è¡¨ç¤ºãå´©ããå ´åãããã¾ããå
·ä½çã«ã¯ã ãabcããabcã
ã®ããã«ãéãæ¬å¼§ã»éãæ¬å¼§ãé£æ¥ããã±ã¼ã¹ã§ãã ãã
ã®é¨åã§ããããã®éã«ãéãæ¬å¼§ã¨éãæ¬å¼§ã®è¡¨ç¤ºãéãªã£ã¦ãã¾ãã¾ãã
æè¿ã§ã¯WindowsçTeamsã¯ã©ã¤ã¢ã³ãã§ãåæ§ã®è¡¨ç¤ºã«ãªã£ã¦ããããªãã ããªãã£ã¦æã£ã¦ãã¾ãã
åé¿ç
Yu Gothic UIã使ããã¦ããWebãµã¤ãã§ãã®ãããªåé¡ãèµ·ãã¦å°ã£ã¦ããæ¹ã¯ã Stylus 㧠text-spacing-trim: space-all;
ãæå®ããã¨è¯ãã§ããâ»Stylusã®ä½¿ãæ¹ã¯å²æ
Teamsã¯ã©ã¤ã¢ã³ãã®ããã«å é¨çã«Webã¢ããªãå©ç¨ãã¦ããã¿ã¤ãã®ãã¼ã«ã§ã¯ãæ®å¿µãªããåé¿çãããã¾ããâ¦ã
åå
HTMLãæ¸ãããã¨ã®ããæ¹ã¯ãåç¥ãã¨æãã¾ããããã©ã¦ã¶ã§è¡¨ç¤ºããå ´åã«ã¯ããã©ã«ãã§ããã¤ãã®CSSãé©ç¨ããã¾ããä¾ãã° <h1>è¦åºã</h1>
ãªã©ã¨æ¸ãã¨ãæåãµã¤ãºã大ããã¹ã¿ã¤ã«ãé©ç¨ããããã¨ãã§ããã
ãã®ããã©ã«ãCSSã®å
ã text-spacing-trim
ããããã£ã®æåã¨Yu Gothic UIã®ç¸æ§ã®æªãã«ãã£ã¦åè¿°ã®åé¡ãèµ·ããããã§ãã
text-spacing-trim - MDN ã«ããã¨ããã®ããããã£ã¯ä¸å½èª/æ¥æ¬èª/éå½èª (CJK) ã«ãããæç« èå¥ã®æ¹åãç®çã¨ãããã®ã ããã§ããæåã¨ãã¦ã¯ã ããï¼ï¼ãããã
ãªã©ãç´ç©ã¨ããããè¨å·é¡ã®è¡¨ç¤ºä½ç½®ã表示å¹
ãããæãã«èª¿æ´ãããã¨ã§è¦ããããããã¨ãã£ããã®ã§ãã
ãã©ã¦ã¶ããã©ã«ãå¤ã¨ã㦠normal
ãè¨å®ãããããã§ããããã®ããã©ã«ãå¤ã®æç¹ã§è¡¨ç¤ºä½ç½®ã»å¹
ãå¤ããããã§ããã normal
ã§ã¯ã ãã
ã®ããã«é£ãªã£ãå ´åã®2æåç® (ãã®å ´å㯠ã
) ã®è¡¨ç¤ºä½ç½®ã»å¹
ãå¤åããããã¨ãã£ãæåã«ãªãã¾ãã
ãã㧠text-spacing-trim: normal;
ã®æãã©ã®ããã«æåå¹
ãå¤ããã®ã詳ããè¦ã¦ã¿ã¾ãããã
ä¸å³ã¯ãYu Gothic UIã®å
ã«ãªã£ã¦ããã游ã´ã·ãã¯ãã使ãã text-spacing-trim
ã®ããããã£å¤ãå¤ãã¦è¡¨ç¤ºã®æ¯è¼ããããã®ã§ããæ¬å¼§ã®é¨åã«èæ¯è²ã®CSSãé©ç¨ããå¹
ãã©ã®ããã«æ±ããã¦ããããå¯è¦åãã¦ãã¾ããé£æ¥ãã¦ãã ã
ã ï¼
ã®å¹
ãçããªã£ã¦ããã®ãè¦ã¦åãã¾ãã
ã¡ãªã¿ã«åè¿°ã®ãã¼ã¸ã«ããã¨ã text-spacing-trim
ã¯Chromeã§ãã¼ã¸ã§ã³123ãã対å¿ãFirefoxã§ã¯ç¾å¨æªå¯¾å¿ã®ããã§ã (2024/10/12 æç¹ãåæç¹ã§Chromeã®ææ°ãã¼ã¸ã§ã³ã¯129)ãå²ã¨å°å
¥ããã¦ããæ°ããããããã£ã§ããããã¤åè¿°ã®éãããã©ã«ãå¤ normal
ã§ã表示ãå¤ãããã¨ãããå¤ãã®Webãµã¤ãã§æå³ããç´ç©ã®è¡¨ç¤ºå
·åãå¤ãã£ã¦ãã¾ãå¯è½æ§ãããã®ã§ã¯ãªãã§ããããã
Yu Gothic UI ç¹æã®åé¡ï¼
CJK punctuation kerning: the CSS text-spacing-trim
property - Chrome Platform Status ã«ããã¨ãtext-spacing-trim
ããããã£ã¯ããã©ã³ãå
ã«è¨å®ããã¦ãããhaltãã¨ããè¨å®ã«ãã£ã¦è¡¨ç¤ºä½ç½®ã表示å¹
ãå¤ããããã§ãã
Yu Gothic UIã®è¨å®å¤ã Fontforge ã§è¦ãã¦ã¿ãã¨ã確ãã«ãhaltãã®è¨å®ãããã¦ãããã¨ãåããã¾ãã
ãã®haltæ
å ±ã«ãã£ã¦ãç´ç©ãé£æ¥ããã¨ãã® text-spacing-trim
ã§ã®è¡¨ç¤ºä½ç½®ã»è¡¨ç¤ºå¹
ã®èª¿æ´éã決ããããã¨ã®ãã¨ãåé¡ã¯ãYu Gothic UIã«ããã¦ãhaltæ
å ±ã§ã®èª¿æ´éãéµæ¬å¼§ã®è¡¨ç¤ºå¹
ã1024ãã¨åã大ããã«ãªã£ã¦ãã¾ã£ã¦ããã¨ããã«ããããã§ãã
ä¸è¨ã®haltæ
å ±ã ã¨ããå
ã1024å¹
ã®æåã«å¯¾ãã¦ã表示ä½ç½®ãå·¦ã«1024ãããã表示å¹
ã1024æ¸ãããã¨ãã調æ´ã«ãªãã®ã§ã ã
ã¯ä¸å³ã®ãããªèª¿æ´ã«ãªãã¾ãã
ä¸å³ã®ãããªèª¿æ´ããããããã«ãæ¬æ¥ã®è¡¨ç¤ºå¹ ãã¼ãã«ãªãããã¤è¡¨ç¤ºä½ç½®ãã¼ãä½ç½®ããå·¦å´ã«çªãåºãã¦ãã¾ããå·¦å´ã®æå (éãéµæ¬å¼§) ã«å³å´ã®æå (éãéµæ¬å¼§) ãéãªã£ã¦ãã¾ã£ã¦ããã¨æããã¾ãã
ã¾ã¨ã
Yu Gothic UIãå ã«ãªã£ã¦ãã游ã´ã·ãã¯ããéµæ¬å¼§ã®å¹ ãå¤æ´ããã¦åè§ã®1024ã«ãªã£ã¦ãã¾ããããããæªå½±é¿ãåã¼ãã¦ããããã«æãã¾ãããããããhaltãã¨ããã®ã¯ãå ¨è§ã®è¨å·ãåè§è¡¨ç¤ºã«ãããã¨ããéã®èª¿æ´æ å ±ãã§ããã®ã§ãä»åã®éµæ¬å¼§ã®ããã«æ¢ã«åè§å¹ ã®ã°ãªãã§ã¯ä¸è¦ãªã¯ããªã®ã§ãããå¶ä½ã§åè§åããéã«è¦è½ã¨ãã¦ãã¾ã£ãã®ã§ãããâ¦ã
Yu Gothic UIã®éµæ¬å¼§è¨å·ã®haltæ å ±ãåé¤ããããéµæ¬å¼§è¨å·ãå ¨è§ã«ãããããã®ãããã®å¯¾å¦ãããã°è§£æ¶ããã¨ã¯æãã¾ãããOSæ¨æºãã©ã³ãã¨ãããã¨ã§ããããããããããç°¡åã«å·®ãæ¿ããããªãäºæ ãªã©ããã®ããããã¾ããã
ã§ããtext-spacing-trim
ã®ãã©ã¦ã¶ããã©ã«ãå¤ã®æåãå¾®å¦ãªæ°ããã¾ãããWebãµã¤ãå¶ä½è
ãæå³ããæåã®è¡¨ç¤ºå¹
ãå¤ãã (é¨åçã« halt
ãé©ç¨ç¶æ
ã«ãªã) ã®ã£ã¦ãã©ããªãã ãããªã¼ã
(2024-10-16 追è¨) Chromeã®ãã©ã¼ã©ã çµç±ã§Microsoftã«ã¯ä¼ãã£ã¦ããããã§ãã
[text-spacing-trim] Glyph collides if the font is "Yu Gothic UI"
(2024-11-02 追è¨) ä¸è¨ãã©ã¼ã©ã ã®10æ24æ¥ã®Microsoftã¡ã³ãã¼ã®ã³ã¡ã³ãã«ããã¨ããã©ã³ãã¡ã¼ã«ã¼ã«ããä¿®æ£ã¯çµãã£ã模æ§ããã¨ã¯Windows Updateã«è¼ããã¿ã¤ãã³ã°ã®èª¿æ´æ®µéã«å ¥ã£ã¦ããããã§ãã