The Optical Character Recognition feature provided by the OCR plugin is deprecated. It was removed from TestComplete in version 12.60 and is no longer available for later versions. Instead, TestComplete version 12.60 introduces the new Optical Character Recognition engine featuring Google Cloud Vision API. To learn more, see Optical Character Recognition. If you need to use the legacy feature, please contact our Customer Care team. |
Description
The Font.Styles
property lets you get an IntCollection
object that represents a collection of styles for the given font that will be used during character recognition. Individual font styles in this collection must be specified by the corresponding integer values: Regular -1, Bold - 2, Italic - 3, Underlined - 4.
If you only need Normal style for the given font, there is no need to specify the style collection for this font. |
Declaration
FontObj.Styles
Read-Only Property | An IntCollection object |
FontObj | An expression, variable or parameter that specifies a reference to a Font object |
Applies To
The property is applied to the following object:
Property Value
An IntCollection
object that represents the font style collection.
Example
To view an example that demonstrates how to use the Styles
property, see the General Recognition Procedure section of the Using Optical Character Recognition - Overview topic.
See Also
IntCollection Object
Name Property
Sizes Property
Using Optical Character Recognition