﻿<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text" xml:lang="en">Gimp</title>
  <link type="application/atom+xml" href="https://d.moonfire.us/tags/gimp/atom.xml" rel="self" />
  <link type="text/html" href="https://d.moonfire.us/tags/gimp/" rel="alternate" />
  <updated>2026-08-15T17:42:46Z</updated>
  <id>https://d.moonfire.us/tags/gimp/</id>
  <author>
    <name>D. Moonfire</name>
  </author>
  <rights>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International</rights>
  <entry>
    <title>Miwāfu Glyphs Redux - Scanning</title>
    <link rel="alternate" href="https://d.moonfire.us/blog/2014/08/18/miwafu-glyphs-cleanup/" />
    <updated>2014-08-18T05:00:00Z</updated>
    <id>https://d.moonfire.us/blog/2014/08/18/miwafu-glyphs-cleanup/</id>
    <category term="graphics" scheme="https://d.moonfire.us/categories/" label="Graphics" />
    <category term="fedran" scheme="https://d.moonfire.us/tags/" label="Fedran" />
    <category term="fonts" scheme="https://d.moonfire.us/tags/" label="Fonts" />
    <category term="gimp" scheme="https://d.moonfire.us/tags/" label="Gimp" />
    <category term="miwafu" scheme="https://d.moonfire.us/tags/" label="Miwāfu" />
    <category term="tutorial" scheme="https://d.moonfire.us/tags/" label="Tutorial" />
    <summary type="html">After drawing out the Miwāfu glyphs by hand, I had to scan them in and get them ready for us.</summary>
    <content type="html">&lt;p&gt;I don't write out things by hand very often. The little imperfections always annoy me, which is why I'd rather create a font that write it out. That way, I can also use the font on the &lt;a href="https://fedran.com/"&gt;Fedran&lt;/a&gt; website to show characters in their native language.&lt;/p&gt;
&lt;h2&gt;Series&lt;/h2&gt;
&lt;p&gt;This is going to be broken into multiple posts about the steps of making a font.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/blog/2014/08/17/miwafu-glyphs-redux/"&gt;2014-08-17 Miwāfu Glyphs Redux - Redrawing&lt;/a&gt; - Since I picked up a few new calligraphy pens for my birthday, I tried to write out Miwāfu and found that it was a bit more difficult than I thought. So I redrew them until they weren't difficult.&lt;/li&gt;
&lt;li&gt;&lt;a href="/blog/2014/08/18/miwafu-glyphs-cleanup/"&gt;2014-08-18 Miwāfu Glyphs Redux - Scanning&lt;/a&gt; - After drawing out the Miwāfu glyphs by hand, I had to scan them in and get them ready for us.&lt;/li&gt;
&lt;li&gt;&lt;a href="/blog/2014/08/19/miwafu-redux-vectorize/"&gt;2014-08-19 Miwāfu Glyphs Redux - Vectors&lt;/a&gt; - Once I got a clean raster version of the glyphs, I use Inkscape to create a vector format which is suitable for importing into FontForge. Part 3 of creating a Miwāfu font.&lt;/li&gt;
&lt;li&gt;&lt;a href="/blog/2014/08/20/miwafu-glyphs-font/"&gt;2014-08-20 Miwāfu Glyphs Redux - Basic Font&lt;/a&gt; - Continuing my series of making a conscript, this describes the steps of going from a cleaned up vector version of the script to a basic font.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Scanning the file&lt;/h2&gt;
&lt;p&gt;The process of scanning in hand-drawn images is fairly simple one. I have a Canon all-in-one printers/scanner which writes out scanned images as PDF to a SD card. I threw everything into a single PDF and then broke it out into individual PNG files using an overly complicated process.&lt;/p&gt;
&lt;p&gt;I should have just scanned each page individually, but it was late and I wanted to go to bed.&lt;/p&gt;
&lt;h2&gt;Removing blue lines&lt;/h2&gt;
&lt;p&gt;The first thing I did was open the scanned images into &lt;a href="http://www.gimp.org/"&gt;Gimp&lt;/a&gt;. I use single window mode (from the &lt;code&gt;Windows&lt;/code&gt; menu) because it plays better with my monitor.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-100.png"&gt;&lt;img class="post-img-link" src="screen-100.png" width="286" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The next is to create a white layer and put it below everything. This will let me use Cut instead of fill to remove elements.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-101.png"&gt;&lt;img class="post-img-link" src="screen-101.png" width="286" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After selecting the main layer again, select by color (right-click, Select, By Color&amp;hellip;) and set the threshold to 40.0.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-102.png"&gt;&lt;img class="post-img-link" src="screen-102.png" width="277" height="483" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With those settings, just click on the blue line and cut (&lt;code&gt;Control-X&lt;/code&gt;). Because we put a white layer behind it, it will delete to white instead of transparent.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-103.png"&gt;&lt;img class="post-img-link" src="screen-103.png" width="286" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After doing this a few times, I get a white background image with the glyphs nice and stark on the page.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-104.png"&gt;&lt;img class="post-img-link" src="screen-104.png" width="286" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Sharpen the images&lt;/h2&gt;
&lt;p&gt;Once I have the guide lines removed, I made the text easier to trace. The first thing is to convert the image into grayscale and back to RGB. This removes any errant blue lines and darkens everything black.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-105.png"&gt;&lt;img class="post-img-link" src="screen-105.png" width="229" height="140" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once that is done, I jack up the contrast to deepen the black even more.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-106.png"&gt;&lt;img class="post-img-link" src="screen-106.png" width="374" height="283" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Smooth out the edges&lt;/h2&gt;
&lt;p&gt;The result is actually good enough for the next step for making a vector version. However, I ended up using the &amp;ldquo;Oilify&amp;rdquo; filter to smooth out the edges so the glyphs look reasonable even in Gimp. I like Oilify because it smooths out the rough edges of an image and gives a more newspaper printed appearance to the images.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-107.png"&gt;&lt;img class="post-img-link" src="screen-107.png" width="295" height="603" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The final result is a fairly dark glyph that is easily designed to be scanned.&lt;/p&gt;
&lt;p&gt;&lt;a href="screen-108.png"&gt;&lt;img class="post-img-link" src="screen-108.png" width="286" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Culling the herd&lt;/h2&gt;
&lt;p&gt;The final step was to go through all of the duplicated glyphs and find the best one of the lot. This was actually a couple hours of shifting images around, removing the ones that don't quite fit, and trying to decide the right shapes to use. Once that was done, I had a single image with one of each glyph.&lt;/p&gt;
&lt;h2&gt;In the future&lt;/h2&gt;
&lt;p&gt;The blue lines I used were a little too dark, which increased the complexity of removing the trace lines. I would use a lighter shade next time.&lt;/p&gt;
&lt;p&gt;I also didn't need to use the oilify since I was scanning into the next step. The result is that the glyphs got a bit more blurred than needed, plus it distorted the shapes (which was magnified by other things I did later).&lt;/p&gt;
</content>
  </entry>
</feed>
