{"id":1318,"date":"2025-10-29T05:23:00","date_gmt":"2025-10-28T20:23:00","guid":{"rendered":"https:\/\/touhyo.com\/blog\/?p=1318"},"modified":"2025-11-24T19:11:57","modified_gmt":"2025-11-24T10:11:57","slug":"improve-numbers-height","status":"publish","type":"post","link":"https:\/\/touhyo.com\/blog\/en\/improve-numbers-height\/","title":{"rendered":"Improve numbers height"},"content":{"rendered":"\n<p>The system makes adjustments even for slight differences in alphanumeric characters.<\/p>\n\n\n\n<p>In text, it&#8217;s &#8220;I (capital I),&#8221; &#8220;l (lowercase L),&#8221; and &#8220;1 (the number one).&#8221; When generating random alphanumeric characters, letters are mixed in.<\/p>\n\n\n\n<p>As a workaround, it&#8217;s acceptable to design the specification for automatically generated alphanumeric candidates to &#8220;exclude specific character strings,&#8221; but it&#8217;s also strange that characters not present within the system exist.<\/p>\n\n\n\n<p>As a simple solution, I&#8217;ll explain how to use a font with small decorative \u201cfeet or whiskers\u201d at the ends of characters by specifying &#8220;serif&#8221; in CSS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Examples of Representative Dialogue Fonts<\/h3>\n\n\n\n<p>\u30fbTimes New Roman<br>\u30fbGeorgia<br>\u30fbGaramond<br>\u30fbBaskerville<br>\u30fbPalatino<\/p>\n\n\n\n<p>The example specified in CSS is as follows.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#34362e;color:#efefe1\">CSS<\/span><pre class=\"shiki monokai\" style=\"background-color: #272822\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #A6E22E\">.element<\/span><span style=\"color: #F8F8F2\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">\t<\/span><span style=\"color: #66D9EF; font-style: italic\">font-family<\/span><span style=\"color: #F8F8F2\">: <\/span><span style=\"color: #E6DB74\">&quot;Times New Roman&quot;<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #66D9EF\">Georgia<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #E6DB74\">&quot;Garamond&quot;<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #E6DB74\">&quot;Baskerville&quot;<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #E6DB74\">&quot;Palatino&quot;<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #66D9EF\">serif<\/span><span style=\"color: #F8F8F2\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>The problem is that depending on the font, the &#8220;height position of numbers&#8221; appears as a subscript. Specifying a different font for the numbers can be helpful.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#34362e;color:#efefe1\">CSS<\/span><pre class=\"shiki monokai\" style=\"background-color: #272822\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F92672\">@font-face<\/span><span style=\"color: #F8F8F2\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">\t<\/span><span style=\"color: #66D9EF; font-style: italic\">font-family<\/span><span style=\"color: #F8F8F2\">: <\/span><span style=\"color: #E6DB74\">&quot;Number&quot;<\/span><span style=\"color: #F8F8F2\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">\t<\/span><span style=\"color: #66D9EF; font-style: italic\">src<\/span><span style=\"color: #F8F8F2\">: <\/span><span style=\"color: #66D9EF\">local<\/span><span style=\"color: #F8F8F2\">(<\/span><span style=\"color: #E6DB74\">&quot;Baskerville&quot;<\/span><span style=\"color: #F8F8F2\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">\t<\/span><span style=\"color: #66D9EF; font-style: italic\">unicode-range<\/span><span style=\"color: #F8F8F2\">: <\/span><span style=\"color: #AE81FF\">U+0030-0039<\/span><span style=\"color: #F8F8F2\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #A6E22E\">.element<\/span><span style=\"color: #F8F8F2\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">\t<\/span><span style=\"color: #66D9EF; font-style: italic\">font-family<\/span><span style=\"color: #F8F8F2\">: <\/span><span style=\"color: #E6DB74\">&quot;Number&quot;<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #E6DB74\">&quot;Times New Roman&quot;<\/span><span style=\"color: #F8F8F2\">, <\/span><span style=\"color: #66D9EF\">serif<\/span><span style=\"color: #F8F8F2\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Specifying a range for the numbers (0 to 9) and assigning the \u201cNumber\u201d font to them. Next, we&#8217;re writing the font to be applied to the numbers first so it loads with priority.<\/p>\n\n\n\n<p>Numbers 0 through 9 will be displayed in &#8220;Baskerville,&#8221; while all other characters will use &#8220;Times New Roman.&#8221; After that, feel free to experiment with combining fonts to achieve your ideal look, then choose whichever works best. Please give it a try.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The system makes adjustments even for slight differences in alphanumeric characters. In text, it&#8217;s &#8220;I (capital I),&#8221; &#8220;l (lowercase L),&#8221; and &#8220;1 (the number one).&#8221; When generating random alphanumeric characters, letters are mixed in. As a workaround, it&#8217;s acceptable to design the specification for automatically generated alphanumeric candidates to &#8220;exclude specific character strings,&#8221; but it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"https:\/\/touhyo.com\/blog\/?p=1315","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1318","post","type-post","status-publish","format-standard","hentry","category-memo","en-US"],"_links":{"self":[{"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/posts\/1318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/comments?post=1318"}],"version-history":[{"count":7,"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/posts\/1318\/revisions"}],"predecessor-version":[{"id":1373,"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/posts\/1318\/revisions\/1373"}],"wp:attachment":[{"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/media?parent=1318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/categories?post=1318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touhyo.com\/blog\/wp-json\/wp\/v2\/tags?post=1318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}