<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Fonts on Isaac Dedini</title><link>https://vivecuervo7.github.io/dev-blog/tags/fonts/</link><description>Recent content in Fonts on Isaac Dedini</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 30 Jun 2026 00:00:00 +1000</lastBuildDate><atom:link href="https://vivecuervo7.github.io/dev-blog/tags/fonts/index.xml" rel="self" type="application/rss+xml"/><item><title>The "too hard" pile keeps shrinking</title><link>https://vivecuervo7.github.io/dev-blog/p/font-small-caps/</link><pubDate>Tue, 30 Jun 2026 00:00:00 +1000</pubDate><guid>https://vivecuervo7.github.io/dev-blog/p/font-small-caps/</guid><description>&lt;img src="https://vivecuervo7.github.io/dev-blog/p/font-small-caps/cover.png" alt="Featured image of post The "too hard" pile keeps shrinking" /&gt;&lt;p&gt;Every so often I&amp;rsquo;m about to give up on something, or quietly settle for a worse version of it, and then I remember I can just ask Claude. It keeps happening, and it keeps delighting me. A whole category of tasks I&amp;rsquo;d have filed under &lt;em&gt;too hard&lt;/em&gt; or &lt;em&gt;no idea how&lt;/em&gt; has slid within reach of my keyboard. I&amp;rsquo;ve got a few of these now. Here&amp;rsquo;s a recent one.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m building a card game in Godot, and the headings use small caps. The font I picked, &lt;a class="link" href="https://junicode.sourceforge.io/" target="_blank" rel="noopener"
&gt;Junicode&lt;/a&gt;, has &lt;em&gt;real&lt;/em&gt; ones built in, drawn by the type designer rather than faked by shrinking the capitals, so you turn on the OpenType &lt;code&gt;smcp&lt;/code&gt; feature and they show up. The one thing you can&amp;rsquo;t do is change how big they are. Junicode&amp;rsquo;s small caps sit at about 69% of the capital height, and against my titles that felt like too big a drop—I wanted them a little taller, and there&amp;rsquo;s no setting for that. The feature is a switch, not a dial.&lt;/p&gt;
&lt;p&gt;The fix wasn&amp;rsquo;t a mystery. If the small caps are the wrong size you change the small caps, which means changing the font, and I just had no idea &lt;em&gt;how&lt;/em&gt;. A font file is an opaque binary blob to me, and &amp;ldquo;resize a subset of the glyphs&amp;rdquo; sits squarely in the pile of things I know are possible and can&amp;rsquo;t begin to do. So normally this is where I&amp;rsquo;d reach for the fake: render the first letter full size and the rest as smaller capitals, which looks roughly right and is wrong in every way that matters once you&amp;rsquo;ve noticed. Not because it&amp;rsquo;s the better fix, but because it&amp;rsquo;s the one I knew how to build.&lt;/p&gt;
&lt;p&gt;This time I just asked. Claude went straight at the font with &lt;a class="link" href="https://github.com/fonttools/fonttools" target="_blank" rel="noopener"
&gt;fontTools&lt;/a&gt;, a Python library I&amp;rsquo;d never heard of. It found the small-cap glyphs, scaled them up to the ratio I wanted, fixed the spacing to match, and wrote the file back out. The &lt;code&gt;smcp&lt;/code&gt; feature still works exactly as before; the letters are just taller now.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://vivecuervo7.github.io/dev-blog/p/font-small-caps/images/comparison.png"
width="2400"
height="1200"
srcset="https://vivecuervo7.github.io/dev-blog/p/font-small-caps/images/comparison_hu_cfb55acc0bf2b2f9.png 480w, https://vivecuervo7.github.io/dev-blog/p/font-small-caps/images/comparison_hu_95f0fec1fa1bd29d.png 1024w"
loading="lazy"
alt="The same words before and after editing the font. The capitals (red) are untouched; only the small caps grow, from 69% to 85% of cap height."
class="gallery-image"
data-flex-grow="200"
data-flex-basis="480px"
&gt;&lt;/p&gt;
&lt;p&gt;Nothing in the game knows it happened. There&amp;rsquo;s still a single &lt;code&gt;smcp&lt;/code&gt; switch, and the proportion I&amp;rsquo;d been fighting just lives in the font where it belongs—if 85% turns out to still be slightly off, I re-run the script with a different number.&lt;/p&gt;
&lt;p&gt;The font isn&amp;rsquo;t really the point. What gets me is the little jolt of &lt;em&gt;oh, right, I can just do that&lt;/em&gt;, and how often it comes around. I still couldn&amp;rsquo;t edit a font by hand, and I&amp;rsquo;d never heard of the tool that did it an hour before it did, and neither turned out to matter. The gap between the fix I want and the fix I can actually pull off keeps shrinking, and I keep being caught pleasantly off guard by it.&lt;/p&gt;</description></item></channel></rss>