title: Train tesseract font with JTessboxeditor always return error
body: <p>I have tried to train a new font for Tesseract using <a href="https://github.com/nguyenq/jTessBoxEditor/releases" rel="nofollow noreferrer">JTessboxeditor</a>, but it kept running into this issue as displayed on the screenshot attached. I read ob some forum that I need to</p>
  <ol>
  <li><p>Cache the font – I did by issuing this command <code>fc-cache -vf</code>
  It returned the output as successful.</p>
  <p>christdoes@Kehindes-MBP ~ % fc-cache -vf
  Font directories:
  /System/Library/Fonts
  /Library/Fonts
  /Users/christdoes/Library/Fonts
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7
  /Users/christdoes/.local/share/fonts
  /usr/local/share/fonts
  /usr/share/fonts
  /Users/christdoes/.fonts
  /System/Library/Fonts/Supplemental
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/AssetData
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/META-INF
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/AssetData
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/META-INF
  /System/Library/Fonts: caching, new cache contents: 872 fonts, 1 dirs
  /System/Library/Fonts/Supplemental: caching, new cache contents: 482 fonts, 0 dirs
  /Library/Fonts: caching, new cache contents: 37 fonts, 0 dirs
  /Users/christdoes/Library/Fonts: caching, new cache contents: 17 fonts, 0 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7: caching, new cache contents: 0 fonts, 2 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset: caching, new cache contents: 0 fonts, 2 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/AssetData: caching, new cache contents: 10 fonts, 0 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/META-INF: caching, new cache contents: 0 fonts, 0 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset: caching, new cache contents: 0 fonts, 2 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/AssetData: caching, new cache contents: 8 fonts, 0 dirs
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/META-INF: caching, new cache contents: 0 fonts, 0 dirs
  /Users/christdoes/.local/share/fonts: skipping, no such directory
  /usr/local/share/fonts: skipping, no such directory
  /usr/share/fonts: skipping, no such directory
  /Users/christdoes/.fonts: skipping, no such directory
  /System/Library/Fonts/Supplemental: skipping, looped directory detected
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset: skipping, looped directory detected
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset: skipping, looped directory detected
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/AssetData: skipping, looped directory detected
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/META-INF: skipping, looped directory detected
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/AssetData: skipping, looped directory detected
  /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/META-INF: skipping, looped directory detected
  /usr/local/var/cache/fontconfig: cleaning cache directory
  /Users/christdoes/.cache/fontconfig: not cleaning non-existent cache directory
  /Users/christdoes/.fontconfig: not cleaning non-existent cache directory
  fc-cache: succeeded</p>
  </li>
  <li><p>Then I listed all the fonts in the system, it returned among the list, the exact font I added. The fonts are Ubuntu and Inter. I used this command to list all the fonts <code>text2image --fonts_dir /Library/Fonts --list_available_fonts</code></p>
  </li>
  </ol>
  <p>After doing all of these, the problem persists. I can select the font from the GUI but it always return the error.</p>
  <p><a href="https://i.stack.imgur.com/NA3Yd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NA3Yd.png" alt="Font selected" /></a></p>
  <p>Error
  <a href="https://i.stack.imgur.com/ZOrUf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZOrUf.png" alt="Error screen" /></a></p>