Article View: borland.public.cppbuilder.nativeapi
Article #2051Re: Character width in pixels
From: Bob Gonder
Date: Wed, 25 Apr 2007 19:32
Date: Wed, 25 Apr 2007 19:32
21 lines
1526 bytes
1526 bytes
Renald Yazmir wrote: >Is it possible to set font that all characters have the same width in >pixels? > >Currently with my settings all digits are 5 pixels, space and period are 4 >pixels. What settings are you using? >I am using GetTextExtentPoint32(..) to determine character width in pixels. It might also be easier to check the character widths by using GetCharWidth32() >What parameter in LOGFONT needs to be set? I would think OUT_RASTER_PRECIS FIXED_PITCH FF_MODERN
Technical Details
Message-ID:
<de9v23pd2acrdo9dmllfpo7bkjibtsgm0u@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<462f6798$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7b004aa1f1c5a3e9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Character width in pixels Date: Wed, 25 Apr 2007 12:32:15 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <de9v23pd2acrdo9dmllfpo7bkjibtsgm0u@4ax.com> References: <462f6798$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.80.210 X-Trace: newsgroups.borland.com 1177529533 69.69.80.210 (25 Apr 2007 12:32:13 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail