AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de impresión
  • Default font
  • Font and family
  • Getting the list of fonts installed on a computer
  • Differences between FontCreate and iCreateFont
  • Miscellaneous
  • Freeing the fonts created by iCreateFont
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Creates a new print font. This font can be used in different processes. This font is identified by a font number, chosen during the development process. To choose this font and use it in the different print functions, simply select it with iFont.
Remark: This function MUST be called AFTER the iPreview function.. Otherwise, the previews will be ignored.
// Create a 48-point Pica font
iCreateFont(1, 48, iBold + iItalic, iRoman)
// Print a text with this font
iPrint(iFont(1) + "48-pica text")
Sintaxis

Create a new font Ocultar los detalles

iCreateFont(<Identifier> , <Size> , <Style> , <Name> [, <Color> [, <Angle>]])
<Identifier>: Integer
Font identifier. This identifier will be used in the different print functions to specify the font used.
<Size>: Integer
Height of font in Pica points (1 Pica point = 0.353 mm).
<Style>: Integer constant (or combination of constants)
Font attributes.
iBoldBold font
iCondensedCondensed characters
AndroidWidget Android Java This option is ignored.
iExtendedExtended characters
AndroidWidget Android Java This option is ignored.
iItalicItalic font
iLargeLarge characters
AndroidWidget Android Java This option is ignored.
iNormal
(default value)
Standard font, without attributes
iStrikeOutStrikethrough font
iUnderlinedUnderlined font
<Name>: Character string
Name of font (among the fonts installed on the current computer).
AndroidWidget Android Java PDF printouts fonts: only the following fonts are supported: Courier, Helvetica, Times, Symbol and ZapfDingbats. If the name of specified font does not correspond to a supported font, the Helvetica font will be used.
<Color>: Optional integer
Color used for the font. If this parameter is not specified, the color used is black.
This color can correspond to:
<Angle>: Optional integer
Angle (in degrees) according to which the text will be printed. The angle is calculated counterclockwise from a horizontal line (trigonometric direction).
WINDEVWEBDEV - Código ServidorWINDEV MobileReportes y ConsultasCódigo de Usuario (UMC)Ajax

Creating a font family Ocultar los detalles

iCreateFont(<Identifier> , <Size> , <Style> , <Family> [, <Color> [, <Angle>]])
<Identifier>: Integer
Font identifier. This identifier will be used in the different print functions to specify the font used.
<Size>: Integer
Height of font in Pica points (1 Pica point = 0.353 mm).
<Style>: Integer constant (or combination of constants)
Font attributes.
iBoldBold font
iCondensedCondensed characters
iExtendedExtended characters
iItalicItalic font
iLargeLarge characters
iNormal
(default value)
Standard font, without attributes
iStrikeOutStrikethrough font
iUnderlinedUnderlined font
<Family>: Integer constant
Font family.
iCourierCourier font (fixed character width)
iDefaultAny font ("Don't care")
iRomanRoman font (exotic font)
iSwissSwiss font (quality font)
<Color>: Optional integer
Color used for the font. If this parameter is not specified, the color used is black.
This color can correspond to:
<Angle>: Optional integer
Angle (in degrees) according to which the text will be printed. The angle is calculated counterclockwise from a horizontal line (trigonometric direction).
Observaciones

Default font

If iCreateFont is not used, the default font will have the following characteristics:
  • Font #0,
  • size: 12,
  • normal style.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadCódigo de Usuario (UMC)Ajax

Font and family

With some configurations, iPrint can produce unexpected results if the name of a font family was specified in iCreateFont. It is recommended to specify the name of a font in iCreateFont.

Getting the list of fonts installed on a computer

To get the list fonts installed on a computer:
  1. In the program manager of Windows, select the main group.
  2. Click the "Control panel" icon and select "Fonts".
  3. In the list of fonts installed, write down the names without taking the attributes and the types into account.
Remarks:
  • WINDEVWEBDEV - Código Servidor FontList returns the list of fonts installed on a computer.
  • WINDEV iSelectFont creates a font from the Windows font selection window
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadCódigo de Usuario (UMC)Ajax

Differences between FontCreate and iCreateFont

FontCreate creates a font definition that can be used in all the elements of a WINDEV or WEBDEV application. This font is stored using the Font variable type and can be used:
iCreateFont can only create a font that can be used by print functions.

Miscellaneous

  • iCreateFont can be used to create as many fonts as necessary (memory limit).
  • You must create as many fonts as the number of colors found in the text.
  • When printing to HTML or RTF files (functions iPreview or iDestination), 90° fonts are replaced by 0° fonts: text is printed horizontally.

Freeing the fonts created by iCreateFont

When no longer used, the fonts created with iCreateFont can be destroyed by iReset to free resources. If iReset is not used, the fonts will be automatically destroyed when the application is closed.
Componente: wd300prn.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local