🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1217

Font Attributes?

#1217
From: Kevin J. Binkley
Date: Wed, 06 Feb 1991 01:40
39 lines
2117 bytes
I would like to display text vertically.  I tried creating a font with
the nEscapment and nOrientations = 450 (45 deg) (also tried 900) and saw 
no change at all in the orientation or escapment.  Do these attributes have 
any effect yet?  or must I design a specific font so the font picker will
find a match?  Has anyone ever drawn vertical text (in some convient
way)? How?

Also, my application requests a vector font.  I was hoping that the 
labels on some graphs I produce would continuously scale as I resize the
graph window.  On some systems it does and on others the font found
jumps in size abruptly as I request different heights.  Meaning that
Window's can't scale or pick the font or the next height requested.  On
the systems that exhibited continuous scaling, PageMaker was loaded.
Does anyone know of a standard Window's Font that I can request and
continuously adjust the nHeight parameter?

This is the code I was using for all of the above tries:

  logfont.lfHeight = 8;
  logfont.lfWidth = 5;
  logfont.lfEscapement = 0; /* changed to 450 for 45 degrees, no effect */
  logfont.lfOrientation = 0; /* changed to 450, no effect */
  logfont.lfWeight = 0;
  logfont.lfItalic = 0;
  logfont.lfUnderline = 0;
  logfont.lfStrikeOut = 0;
  logfont.lfCharSet = ANSI_CHARSET;
  logfont.lfOutPrecision = OUT_DEFAULT_PRECIS;
  logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
  logfont.lfQuality = DEFAULT_QUALITY;
  logfont.lfPitchAndFamily = FF_SWISS;
  lstrcpy(logfont.lfFaceName,"Helv");
  hFont = CreateFontIndirect(&logfont);

  /* I used TextOut after selecting the font into the DC */

Thanks for your help,

-Kevin Binkley
Technical Details
Message-ID: <1991Feb6.014034.12484@Neon.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!att!linac!unixhub!shelby!neon!kbinkley

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!att!linac!unixhub!shelby!neon!kbinkley
From: kbinkley@Neon.Stanford.EDU (Kevin J. Binkley)
Newsgroups: comp.windows.ms.programmer
Subject: Font Attributes?
Message-ID: <1991Feb6.014034.12484@Neon.Stanford.EDU>
Date: 6 Feb 91 01:40:34 GMT
Organization: Computer Science Department, Stanford University
Lines: 39