Click here to Skip to main content
15,896,467 members
Articles / Desktop Programming / MFC

Retrieving Font Name from TTF File

Rate me:
Please Sign up or sign in to vote.
4.86/5 (25 votes)
12 Dec 2002CPOL3 min read 285.5K   6.4K   35  
Explains how to retrieve a font name from TrueType or OpenType files (.ttf)
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by TTFFileViewer.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_TTFFILEVIEWER_DIALOG        102
#define IDR_MAINFRAME                   128
#define IDC_LFONTS                      1000
#define IDC_BOPEN                       1001
#define IDC_ENAME                       1002
#define IDC_SURL                        1007
#define IDC_SCOPYRIGHT                  1008
#define IDC_STRADEMARK                  1009

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1010
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader Varonis
Israel Israel
I was born in small town Penza, Russia, in October 13th, 1975 yr. So my mother tongue is Russian. I finished the school there and learned in University, then I came to Israel and since then, I live there (or here *s*)
My profession is a C++ programmer under MS Windows platforms, but my hobby is Web development and ASP programming.

I started interesting in computers and programming somewere in 1990-1991 yrs., when my father brought home our first computer - Sinclair ZX Spectrum (he made it by himself). So I learned Basic and joined the Basic programmers club at my school (me and my friend were the only 2 guys from all school there, lol). After I finished the school (1992yr) I decided to continue my study at University and got specialization Operation Systems and Software Engineer. Although I still like my profession, but I always wanted something new, thus I learned HTML, Javascript and ASP which turned to be my hobby Smile | :)

Comments and Discussions