Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On Thu, 28 Sep 2017, zed wrote:

When I open the Garamond fonts in Font Forge they are displayed

ugmm8a.pfb
ugmmi8a.pfb
ugmmr8a.pfb
ugmmri8a.pfb

Clicking on any one of them displays an edit window and I presume that I
should be able to convert each to something other than .pfb but have no
idea how to do it.

I have looked at several utube videos ...

Zed,

  I know that reading is so 20th Century compared to watching someone's
video on youtube, but the answer can be found on the new fontforge web site
(using the scripts option)[1]. Or check out this techwalla web site (found
with a duckduckgo search
<https://www.techwalla.com/articles/how-to-convert-fonts-from-otf-to-ttf>.
While not the translation you want, the protocol is sound.

  To get you started (and please do read the fontforge scripting tutorial to
tune it for your needs) here is the script I use to convert to .otf fonts:

x<--------------
[1] convert-fonts.sh

#!/usr/bin/fontforge

# Use fontforge to convert .ttf, .pfb, and .svg to .otf
# invoke as ./convert-fonts.sh <font_name>.

i = 1
format = ".otf"
while (i < $argc)
  if ($argv[i] == "-format" || $argv[i] == "--format")
    i = i+1
    if (i < $argc)
      format = $argv[i]
      if (format != ".ttf" && format != ".otf" && \
          format != ".pfb" && format != ".svg")
         Error( "Expected one of '.ttf', '.otf', '.pfb' or '.svg' for format" )
       endif
     endif
   else
     Open($argv[i])
     if ($order == 2 && (format == ".otf" || format == ".pfb" ))
        SetFontOrder(3)
        SelectAll()
        Simplify(128+32+8,1.5)
        ScaleToEm(1000)
      elseif ($order == 3 && format == ".ttf" )
        ScaleToEm(2048)
        RoundToInt()
      endif
      Generate($argv[i]:r + format)
   endif
   i = i + 1
endloop
x<==========================

HTH,

Rich

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.