Using Win32 functions in Visual FoxPro Image Gallery
Font and Text
..msdn
CreateFont
DrawText
GetCharABCWidths
GetTextAlign
GetTextCharacterExtra
GetTextColor
GetTextExtentPoint32
GetTextFace
GetTextMetrics
SetTextAlign
SetTextCharacterExtra
SetTextColor
TextOut
Code examples:
GetCharABCWidths
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the widths, in logical units, of consecutive characters in a specified range from the current TrueType font. This function succeeds only with TrueType fonts.
Code examples:
Declaration:
BOOL GetCharABCWidths(
  HDC hdc,         // handle to DC
  UINT uFirstChar, // first character in range
  UINT uLastChar,  // last character in range
  LPABC lpabc      // array of character widths
);
FoxPro declaration:
DECLARE INTEGER GetCharABCWidths IN gdi32;
    INTEGER   hdc,;
    INTEGER   uFirstChar,;
    INTEGER   uLastChar,;
    STRING  @ lpabc

Parameters:
hdc
[in] Handle to the device context.

uFirstChar
[in] Specifies the first character in the group of consecutive characters from the current font.

uLastChar
[in] Specifies the last character in the group of consecutive characters from the current font.

lpabc
[out] Pointer to an array of ABC structures that receives the character widths, in logical units.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
MSDN: To retrieve the widths of characters in non-TrueType fonts, applications should use the GetCharWidth function.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-04-23 22:08:37
Modified: 2003-04-23 22:11:31
Visited in last 7 days: 14
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.245.10)
12 sec.Function: 'DefWindowProc'
26 sec.Function: 'GetClassLong'
38 sec.Function: 'midiOutReset'
50 sec.Function: 'WTSQuerySessionInformation'
1.02 min.Function: 'GetTickCount'
1.23 min.Function: 'NetScheduleJobDel'
1.4 min.Function: 'EndDoc'
1.63 min.Function: 'PageSetupDlg'
1.87 min.Function: 'VkKeyScan'
2.1 min.Function: 'NetServerEnum'
Google
Advertise here!