Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop

LOGFONTA Structure


This document describes technologies available in the Internet Explorer 5 Beta. While we encourage you to evaluate these features and to send us your feedback, please note that these features are subject to change.

Defines the attributes of a font.

Syntax

typedef struct{
    LONG lfHeight;
    LONG lfWidth;
    LONG lfEscapement;
    LONG lfOrientation;
    LONG lfWeight;
    BYTE lfItalic;
    BYTE lfUnderline;
    BYTE lfStrikeOut;
    BYTE lfCharSet;
    BYTE lfOutPrecision;
    BYTE lfClipPrecision;
    BYTE lfQuality;
    BYTE lfPitchAndFamily;
    CHAR lfFaceName[LF_FACESIZE];
}LOGFONTA;

Members

lfHeight
Long integer value that specifies the height, in logical units, of the font's character cell or character.
lfWidth
Long integer value that specifies the width, in logical units, of characters in the font.
lfEscapement
Long integer value that contains the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.
lfOrientation
Long integer value that specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
lfWeight
Long integer value that specifies the weight of the font in the range 0 through 1000.
lfItalic
BYTE value that specifies an italic font if set to TRUE.
lfUnderline
BYTE value that specifies an underlined font if set to TRUE.
lfStrikeOut
BYTE value that specifies a strikeout font if set to TRUE.
lfCharSet
BYTE value that specifies the character set.
lfOutPrecision
BYTE value that specifies the output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, pitch, and font type.
lfClipPrecision
BYTE value that specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.
lfQuality
BYTE value that specifies the output quality. The output quality defines how carefully the graphics device interface (GDI) must attempt to match the logical-font attributes to those of an actual physical font.
lfPitchAndFamily
BYTE value that specifies the pitch and family of the font.
lfFaceName
Array of characters that contains a null-terminated string that specifies the typeface name of the font. The length of the string must not exceed 32 characters, including the NULL terminator.

Remarks

This structure maps to the LOGFONT structure documented in the Microsoft® Platform Software Development Kit (SDK). Non-SBN link

Structure Information

Windows NT Use version 4.0 and later. Implemented as an ANSI structure.
Windows Use Windows 95 and later. Implemented as an ANSI structure.
Header Declared in Dimm.idl.
Minimum availability Internet Explorer 5.0

Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site