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 8816627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:39:48+00:00 2026-06-14T04:39:48+00:00

On some fonts, I can’t get SDL_TTF to render some glyphs (such as …),

  • 0

On some fonts, I can’t get SDL_TTF to render some glyphs (such as …), even when I know they are present (if I use the same font in, say, gedit, it works fine).

Makefile:

test: test.c
    gcc -o test -ansi -pedantic -Wall test.c `sdl-config --cflags --libs` -lSDL_ttf

Example (test.c):

#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>

int main(int argc, char *argv[]) {
    SDL_Init(SDL_INIT_EVERYTHING);
    TTF_Init();

    {
        SDL_Event ev;
        SDL_Color color = {255,255,255};
        SDL_Surface *win = SDL_SetVideoMode(640, 480, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
        TTF_Font *drawfont = TTF_OpenFont("./ProggySquareSZ.ttf", 22);
        SDL_Surface *text_surface = TTF_RenderUTF8_Solid(drawfont,"…",color);
        SDL_Rect r = {10, 10, 0, 0};
        SDL_BlitSurface(text_surface,NULL,win,&r);

        SDL_Flip(win);
        while(SDL_WaitEvent(&ev)) {
            if(ev.type == SDL_QUIT) break;
        }
    }

    return 0;
}
  • 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-14T04:39:50+00:00Added an answer on June 14, 2026 at 4:39 am

    This font has no ….

    Name: ProggySquareTTSZ
    Supported Unicode Blocks
        0x0000 - 0x00FF   ANSI
    

    A horizontal ellipsis has U+2026 code, it more than 0x00FF(255).

    Probably you see … in gedit because in some operating systems and software, if a certain character is not found in
    the font, it’s being replaced with same from more similar font, installed in the
    OS, and then displayed.

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

Sidebar

Related Questions

I am wondering if I can get some system stock fonts using c#?
Some background: In Devanagari fonts, same character code can be represented as a different
With EnumFontFamiliesEx , I get two instances of some fonts, the second of which
I'd like to use some fonts that aren't part of the iPhone OS. I've
do you know some good sites within good fonts that could be used in
how can I define and use local fonts on the server? exec(Init::$static['path_imagemagick'].'convert -background none
I've seen that some websites use @font-face but they look creepy & without anti-aliasing,
I was trying to create my portfolio website and wanted to use some fonts
How can I set the font/bold/italic/underline whatever of some text in a JEditorPane? I
For some fonts, it's easy to replace the default font with something like: \renewcommand{\rmdefault}{somefont}

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.