Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8655061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:56:19+00:00 2026-06-12T14:56:19+00:00

I am trying to create a font/glyph by: taking a bitmap image creating an

  • 0

I am trying to create a font/glyph by:

  • taking a bitmap image
  • creating an SVG with autotrace (on Linux)
  • importing the outline as a glyph with python-fontforge (glyph.importOutlines(svgfile) )

This works fine except that the resulting glyph in inverted (see images). Any idea how this can be prevented, how the SVG or glyph can be inverted, or anything like that?

Source bitmap:
source bitmap

Autotraced SVG:
enter image description here

Resulting font:
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:56:20+00:00Added an answer on June 12, 2026 at 2:56 pm

    solved this simply by using potrace instead of autotrace.

    for reference, these are the steps:

    convert bitmap to svg (linux command line):

    potrace -s sourceimg.bmp
    

    use svg as glyph (python):

    import fontforge
    font = fontforge.open('blank.sfd')
    glyph = font.createMappedChar('A')
    glyph.importOutlines('sourceimg.svg')
    font.generate('testfont.ttf')
    

    That’s it, result below for use on a website:

    css:

    @font-face
    {
    font-family: testfont;
    src: url('testfont.ttf');
    }
    

    html:

    <span style="font-family:testfont; font-weight:normal; color:green;">A</span>
    <span style="font-family:testfont; font-weight:bold; color:green;">A</span>
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a text widget in Tkinter (for Python) whose font size
Trying to create a background-image slideshow and am getting this error... This is the
I am trying to create a type of font repository for use on my
I am trying to create a Swing panel whose elements have a different font
I am trying to create a .NET Regex to parse a CSS font declaration,
I'm trying to create an image with some text on it and I want
I'm trying to create a button, where the font is bold but it also
I am trying to create an image with text by using imagettftext. It is
I'm trying to create an element which when the mouse is over its image
I am trying to create a Security Image from a text using the perl

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.