ClassesClassesClassesClasses | | | | Operators

get_font_extentsget_font_extentsGetFontExtentsget_font_extentsGetFontExtentsGetFontExtents (Operator)

Name

get_font_extentsget_font_extentsGetFontExtentsget_font_extentsGetFontExtentsGetFontExtents — Get the maximum size of all characters of a font.

Signature

get_font_extents( : : WindowHandle : MaxAscent, MaxDescent, MaxWidth, MaxHeight)

Herror get_font_extents(const Hlong WindowHandle, Hlong* MaxAscent, Hlong* MaxDescent, Hlong* MaxWidth, Hlong* MaxHeight)

Herror T_get_font_extents(const Htuple WindowHandle, Htuple* MaxAscent, Htuple* MaxDescent, Htuple* MaxWidth, Htuple* MaxHeight)

Herror get_font_extents(const HTuple& WindowHandle, Hlong* MaxAscent, Hlong* MaxDescent, Hlong* MaxWidth, Hlong* MaxHeight)

Hlong HWindow::GetFontExtents(HTuple* MaxDescent, HTuple* MaxWidth, HTuple* MaxHeight) const

void GetFontExtents(const HTuple& WindowHandle, HTuple* MaxAscent, HTuple* MaxDescent, HTuple* MaxWidth, HTuple* MaxHeight)

HTuple HWindow::GetFontExtents(HTuple* MaxDescent, HTuple* MaxWidth, HTuple* MaxHeight) const

Hlong HWindow::GetFontExtents(Hlong* MaxDescent, Hlong* MaxWidth, Hlong* MaxHeight) const

void HOperatorSetX.GetFontExtents(
[in] VARIANT WindowHandle, [out] VARIANT* MaxAscent, [out] VARIANT* MaxDescent, [out] VARIANT* MaxWidth, [out] VARIANT* MaxHeight)

VARIANT HWindowX.GetFontExtents(
[out] VARIANT* MaxDescent, [out] VARIANT* MaxWidth, [out] VARIANT* MaxHeight)

static void HOperatorSet.GetFontExtents(HTuple windowHandle, out HTuple maxAscent, out HTuple maxDescent, out HTuple maxWidth, out HTuple maxHeight)

HTuple HWindow.GetFontExtents(out HTuple maxDescent, out HTuple maxWidth, out HTuple maxHeight)

int HWindow.GetFontExtents(out int maxDescent, out int maxWidth, out int maxHeight)

Description

get_font_extentsget_font_extentsGetFontExtentsget_font_extentsGetFontExtentsGetFontExtents queries the maximum width (MaxWidthMaxWidthMaxWidthMaxWidthMaxWidthmaxWidth), height (MaxHeightMaxHeightMaxHeightMaxHeightMaxHeightmaxHeight), and extension above and below the baseline (MaxAscentMaxAscentMaxAscentMaxAscentMaxAscentmaxAscent and MaxDescentMaxDescentMaxDescentMaxDescentMaxDescentmaxDescent, respectively) of the font that is currently set for the window WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle. The sizes are measured in pixels.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window handle.

MaxAscentMaxAscentMaxAscentMaxAscentMaxAscentmaxAscent (output_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Maximum height above baseline.

MaxDescentMaxDescentMaxDescentMaxDescentMaxDescentmaxDescent (output_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Maximum extension below baseline.

MaxWidthMaxWidthMaxWidthMaxWidthMaxWidthmaxWidth (output_control)  extent.x HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Maximum character width.

MaxHeightMaxHeightMaxHeightMaxHeightMaxHeightmaxHeight (output_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Maximum character height.

Result

get_font_extentsget_font_extentsGetFontExtentsget_font_extentsGetFontExtentsGetFontExtents returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, set_fontset_fontSetFontset_fontSetFontSetFont

Possible Successors

set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition, write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString, read_stringread_stringReadStringread_stringReadStringReadString, read_charread_charReadCharread_charReadCharReadChar

See also

get_string_extentsget_string_extentsGetStringExtentsget_string_extentsGetStringExtentsGetStringExtents, set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition, set_fontset_fontSetFontset_fontSetFontSetFont

Module

Foundation


ClassesClassesClassesClasses | | | | Operators