Click here to Skip to main content
12,395,227 members (71,901 online)
Click here to Skip to main content

Stats

16.2K views
1.8K downloads
20 bookmarked
Posted

Font Enumerator

, 1 Sep 2009 CPOL
A tool that enumerates all fonts installed on Windows, and shows you the preview so as to help you code conveniently.
FontEnumerator_src.zip
FontEnumerator1.gif
FontEnumerator2.gif
FontEnumerator3.gif
FontEnumerator_demo.zip
FontEnumerator.exe
FontEnumerator
res
FontEnumerator.ico
Youngho.bmp
YTL
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "atlres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// �ѱ��� resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
#ifdef _WIN32
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
#pragma code_page(949)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""atlres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON                    "res\\FontEnumerator.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 187, 102
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
CAPTION "About"
FONT 9, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,130,81,50,14
    CTEXT           "Font Enumerator Application v1.1.1\n\n(c) Copyright 2009",
                    IDC_STATIC,25,57,78,32
    ICON            IDR_MAINFRAME,IDC_STATIC,55,26,18,18
    GROUPBOX        "",IDC_STATIC,7,7,115,88
    CONTROL         220,IDC_STATIC,"Static",SS_BITMAP,130,12,43,52
END

IDD_MAINDLG DIALOGEX 0, 0, 434, 325
STYLE DS_SETFONT | WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU
CAPTION "FontEnumerator"
FONT 9, "MS Sans Serif", 0, 0, 0x0
BEGIN
    LISTBOX         IDC_LIST1,7,7,140,254,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | 
                    WS_TABSTOP
    GROUPBOX        "ũ��",IDC_STATIC10,158,7,108,70
    GROUPBOX        "����",IDC_STATIC20,276,7,151,70
    GROUPBOX        "�۲��̸�",IDC_STATIC50,158,174,269,87
    GROUPBOX        "���",IDC_STATIC30,158,87,108,76
    GROUPBOX        "���е�",IDC_STATIC40,276,87,151,76
    CONTROL         "���� (Height):",IDC_CHECK11,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,167,21,61,12
    LTEXT           "�� (Width):",IDC_STATIC12,167,40,61,12,SS_CENTERIMAGE
    LTEXT           "���ڿ� ���� (Escapement):",IDC_STATIC21,284,28,105,12,
                    SS_CENTERIMAGE
    LTEXT           "�β� (Weight):",IDC_STATIC13,167,59,61,12,
                    SS_CENTERIMAGE
    LTEXT           "���� ���� (Orientation):",IDC_STATIC22,284,50,105,12,
                    SS_CENTERIMAGE
    CONTROL         "����Ӳ� (Italic)",IDC_CHECK31,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,167,104,91,10
    CONTROL         "���� (Underline)",IDC_CHECK32,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,167,123,91,10
    CONTROL         "��Ҽ� (StrikeOut)",IDC_CHECK33,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,167,141,91,10
    LTEXT           "������е� (OutPrecision):",IDC_STATIC41,284,102,105,14,
                    SS_CENTERIMAGE
    LTEXT           "Ŭ�����е� (ClipPrecision):",IDC_STATIC42,284,121,105,
                    14,SS_CENTERIMAGE
    LTEXT           "ǰ�� (Quality):",IDC_STATIC43,284,140,105,14,
                    SS_CENTERIMAGE
    LTEXT           "�۲��̸� (FaceName):",IDC_STATIC51,167,186,118,14,
                    SS_CENTERIMAGE
    LTEXT           "��ġ�� �йи� (PitchAndFamily):",IDC_STATIC52,167,205,
                    118,14,SS_CENTERIMAGE
    LTEXT           "�����ڵ� (CharSet):",IDC_STATIC53,167,224,118,14,
                    SS_CENTERIMAGE
    LTEXT           "�۲����� (FontType)",IDC_STATIC54,167,243,118,14,
                    SS_CENTERIMAGE
    EDITTEXT        IDC_EDIT11,233,21,24,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_EDIT12,233,40,24,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT13,233,59,24,12,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT21,394,28,25,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_EDIT22,394,50,25,12,ES_AUTOHSCROLL
    EDITTEXT        IDC_EDIT41,394,102,25,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT42,394,121,25,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT43,394,140,25,14,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT51,290,186,130,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_EDIT52,290,205,130,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_EDIT53,290,224,130,14,ES_AUTOHSCROLL | ES_READONLY
    EDITTEXT        IDC_EDIT54,290,243,130,14,ES_AUTOHSCROLL | ES_READONLY
    DEFPUSHBUTTON   "ABCdef ������ 123 @#$%",IDC_BUTTON60,7,268,420,50,
                    BS_CENTER | BS_VCENTER
END

IDD_DIALOG_INPUT_SAMPLE DIALOGEX 0, 0, 186, 52
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
CAPTION "���� ���ڿ� �ٲٱ�"
FONT 9, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Ȯ��",IDOK,7,31,50,14
    PUSHBUTTON      "���",IDCANCEL,129,31,50,14
    EDITTEXT        IDC_EDIT_SAMPLE,7,7,172,14,ES_AUTOHSCROLL
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 180
        TOPMARGIN, 7
        BOTTOMMARGIN, 95
    END

    IDD_MAINDLG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 427
        TOPMARGIN, 7
        BOTTOMMARGIN, 318
    END

    IDD_DIALOG_INPUT_SAMPLE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 45
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_MAINFRAME ACCELERATORS 
BEGIN
    "N",            ID_FILE_NEW,            VIRTKEY, CONTROL
    "O",            ID_FILE_OPEN,           VIRTKEY, CONTROL
    "S",            ID_FILE_SAVE,           VIRTKEY, CONTROL
    "P",            ID_FILE_PRINT,          VIRTKEY, CONTROL
    "Z",            ID_EDIT_UNDO,           VIRTKEY, CONTROL
    "X",            ID_EDIT_CUT,            VIRTKEY, CONTROL
    "C",            ID_EDIT_COPY,           VIRTKEY, CONTROL
    "V",            ID_EDIT_PASTE,          VIRTKEY, CONTROL
    VK_BACK,        ID_EDIT_UNDO,           VIRTKEY, ALT
    VK_DELETE,      ID_EDIT_CUT,            VIRTKEY, SHIFT
    VK_INSERT,      ID_EDIT_COPY,           VIRTKEY, CONTROL
    VK_INSERT,      ID_EDIT_PASTE,          VIRTKEY, SHIFT
    VK_F6,          ID_NEXT_PANE,           VIRTKEY 
    VK_F6,          ID_PREV_PANE,           VIRTKEY, SHIFT
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,1,1,0
 PRODUCTVERSION 1,1,1,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "FileDescription", "Font Enumerator Module"
            VALUE "FileVersion", "1, 1, 1, 0"
            VALUE "InternalName", "FontEnumerator"
            VALUE "LegalCopyright", "Copyright 2009"
            VALUE "OriginalFilename", "FontEnumerator.exe"
            VALUE "ProductName", "FontEnumerator Module"
            VALUE "ProductVersion", "1, 1, 1, 0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_BITMAP_YOUNGHO      BITMAP                  "res\\Youngho.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDR_MAINFRAME           "FontEnumerator"
END

#endif    // �ѱ��� resources
/////////////////////////////////////////////////////////////////////////////


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)

Share

About the Author

PARK Youngho
Korea (Republic of) Korea (Republic of)
I like programming.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 2 Sep 2009
Article Copyright 2009 by PARK Youngho
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid