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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:16:20+00:00 2026-06-11T07:16:20+00:00

The FreeType library defines quite a few basic data types , but I’m not

  • 0

The FreeType library defines quite a few basic data types, but I’m not quite sure how to use them. I’m trying to use the FT_Get_Glyph_Name method, which takes this form:

FT_Get_Glyph_Name(FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max );

So I have this code:

FT_Face = face;
FT_Pointer = name;
FT_Get_Glyph_Name(face, 0, name, 45);

This works fine, but I’m not sure how to actually get a string representation of the name (to use with printf for example). How do I get from FT_Pointer to a string?

  • 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-11T07:16:22+00:00Added an answer on June 11, 2026 at 7:16 am

    From the documentation link :

    The glyph name is truncated to fit within the buffer if it is too
    long. The returned string is always zero-terminated.

    FT_Pointer is a typedef on void*.

    A simple cast is sufficient :

    char name[100];
    FT_Get_Glyph_Name(face, 0, (FT_Pointer) name, 100);
    printf("Name : '%s'\n", name);
    

    You can also use FT_Pointer type variables and cast them to (char *).

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

Sidebar

Related Questions

I'm trying to use the FreeType library together with libpng to output a PNG
I'm trying to use the FreeType library together with libpng to output a PNG
I use FreeType in my Android applications as a static library which i compile
My question may be silly, but I need to use a library from its
I'm trying to write a simple script using the FreeType library. The segfault is
I'm currently trying to learn how to use the FreeType2 library for drawing fonts
I have an MSVC project that uses freetype, and now I'm trying to move
I am trying to setup freetype2 for .net and I am still not lucky
Hi I'm trying to use PIL to be able to upload images to my
Does any one know samples/tutorials of how to use Freetype in win32 apps

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.