IT
  WAP-
  
  
  
  
  Ѩ
   NEW
  
  
  X-INFO
  
  IT
  
  
  .
  
  

 

IP

54.162.3.15

: 260 ()






(, , ...)
 



, :

program TextOutPr;

uses
Windows;

var
lfont : LOGFONT;
font : HFONT;
dc : HDC;

begin
dc := GetDc(0);

lfont.lfHeight := 13;
lfont.lfWidth := 13;
lfont.lfEscapement := 500;
lfont.lfOrientation := 500;
lfont.lfWeight := FW_LIGHT;
lfont.lfItalic := 0;
lfont.lfUnderline := 0;
lfont.lfStrikeOut := 0;
lfont.lfCharSet := DEFAULT_CHARSET;
lfont.lfOutPrecision := OUT_DEFAULT_PRECIS;
lfont.lfClipPrecision := CLIP_DEFAULT_PRECIS;
lfont.lfQuality := DEFAULT_QUALITY;
lfont.lfPitchAndFamily := DEFAULT_PITCH;
lfont.lfFaceName := 'tahoma';

font := CreateFontIndirect(lfont);

SelectObject(dc, font);
SetBkMode(dc, TRANSPARENT);
SetTextColor(dc, 255);

TextOut(dc, 300, 300, 'HELLO WORLD!', length('HELLO WORLD!'));

DeleteObject(font);
DeleteDc(dc);
end.


, , 'How to'.

lfont.lfHeight - , 0 - , .

lfont.lfWidth - , , 0 - .

lfont.lfEscapement - - , 10, 180 , 180 * 10 = 1800, 1800.

lfont.lfOrientation - ( x) .

lfont.lfWeight - , :

FW_DONTCARE = 0
FW_THIN = 100
FW_EXTRALIGHT = 200
FW_ULTRALIGHT = 200
FW_LIGHT = 300
FW_NORMAL = 400
FW_REGULAR = 400
FW_MEDIUM = 500
FW_SEMIBOLD = 600
FW_DEMIBOLD = 600
FW_BOLD = 700
FW_EXTRABOLD = 800
FW_ULTRABOLD = 800
FW_HEAVY = 900
FW_BLACK = 900

lfont.lfItalic - - - 1 (true), , 0 (false)

lfont.lfUnderline - - - 1 - , 0 -

lfont.lfStrikeOut - -

lfnt.lfCharSet - , :

ANSI_CHARSET
DEFAULT_CHARSET
SYMBOL_CHARSET
SHIFTJIS_CHARSET
GB2312_CHARSET
HANGEUL_CHARSET
CHINESEBIG5_CHARSET
OEM_CHARSET

lfont.lfOutPrecision - :

OUT_CHARACTER_PRECIS
OUT_DEFAULT_PRECIS
OUT_DEVICE_PRECIS
OUT_OUTLINE_PRECIS
OUT_RASTER_PRECIS
OUT_STRING_PRECIS
OUT_STROKE_PRECIS
OUT_TT_ONLY_PRECIS
OUT_TT_PRECIS

lfont.lfClipPrecision - :

CLIP_DEFAULT_PRECIS
CLIP_CHARACTER_PRECIS
CLIP_STROKE_PRECIS
CLIP_MASK
CLIP_EMBEDDED
CLIP_LH_ANGLES
CLIP_TT_ALWAYS

lfontALITY
DRAFT_QUALITY
PROOF_QUALITY

lfont.lfPitchAndFamily - :

DEFAULT_PITCH
FIXED_PITCH
VARIABLE_PITCH

VARIABLE_PIRCH , or, VARIABLE_PIRCH or FF_ROMAN

FF_DECORATIVE
FF_DONTCARE
FF_MODERN
FF_ROMAN
FF_SCRIPT
FF_SWISS
FF_DECORATIVE
FF_DONTCARE
FF_MODERN
FF_ROMAN
FF_SCRIPT
FF_SWISS

lfont.lfFaceName - , tahoma courier new. - 35 , , EnumFontFamilies().

- , logfont

SLAyer

info@comp-info.ru
 



  
    
  IT
  WAP-
  
  
  
  
  Ѩ
   NEW
  
  
  X-INFO
  
  IT
  
  
  .
  
  

 

  
  
  MD5 Base64
   MD5 NEW
 
  
  
  
   IP
  
   IP (Whois)
  
   >
   php-

:
  
  
  
   Win- Linux
   HTTP
  







.
Copyright -. 2005