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

  • Home
  • SEARCH
  • 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 8973553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:28:24+00:00 2026-06-15T18:28:24+00:00

I’m trying to design a vectored font engine like the one in Atari 1979.

  • 0

I’m trying to design a vectored font engine like the one in Atari 1979. I have problem of saving the predefined character set and their co-ordinates, I don’t know what is the best data-structure to save those polygons or what is the best way for to design a class for that. Here is my trial which I’m not comfortable about it at all.

class Character
{
public:
      Character();

public:
    int ascii;
    int strokes;
    std::vector<ci::Vec2i> points;

};
void VectorFont::Init_Chars()
{

    for (int i=0; i<1;i++)
    {
        Character char_A;
        char_A.ascii = 65;
        char_A.strokes = 6;
        ci::Vec2i point_1 = ci::Vec2i(-6,-4);
        ci::Vec2i point_2 = ci::Vec2i(0,8);
        ci::Vec2i point_3 = ci::Vec2i(0,8);
        ci::Vec2i point_4 = ci::Vec2i(6,-4);
        ci::Vec2i point_5 = ci::Vec2i(4,0);
        ci::Vec2i point_6 = ci::Vec2i(-4,0);
        char_A.points.push_back(point_1);
        char_A.points.push_back(point_2);
        char_A.points.push_back(point_3);
        char_A.points.push_back(point_4);
        char_A.points.push_back(point_5);
        char_A.points.push_back(point_6);
        chars.push_back(char_A);
    }

}
  • 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-15T18:28:26+00:00Added an answer on June 15, 2026 at 6:28 pm

    Since these characters have holes, you will need to define a Path class:

    class Path
    {
         public: 
             std::vector<ci::Vec2i> points;
             int orientation; // 1 for fill, 0 for hole.
    }
    

    A Path is a collection of points and an orientation. Your paths should be closed, that is, first and last point are the same. If orientation is 1, then it means fill with black. If it’s a 0, cut a hole.

    Then your Character class would have a collection of Paths, which would be fills or holes.

    The above just describes the data structure for points on fills and holes. An engine would have to be written to translate that data structure into pixels. That’s another topic.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have been unable to fix a problem with Java Unicode and encoding. The
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has

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.