Class: FontMeasurements
ide/vscode/hats/FontMeasurements.FontMeasurements
Contains measurements for the user's font
Constructors
constructor
• new FontMeasurements(extensionContext
)
Parameters
Name | Type |
---|---|
extensionContext | ExtensionContext |
Defined in
ide/vscode/hats/FontMeasurements.ts:20
Properties
characterHeight
• characterHeight: number
The height of a character in the user's chosen font and font size. The height is measured from the baseline to the top of a letter
Defined in
ide/vscode/hats/FontMeasurements.ts:18
characterWidth
• characterWidth: number
The width of a character in the user's chosen font and font size.
Defined in
ide/vscode/hats/FontMeasurements.ts:12
fontSize
• fontSize: number
Defined in
ide/vscode/hats/FontMeasurements.ts:7
Methods
calculate
▸ calculate(): Promise
<void
>
Returns
Promise
<void
>
Defined in
ide/vscode/hats/FontMeasurements.ts:26
clearCache
▸ clearCache(): void
Returns
void