Skip to content

Inconsistent kerning of TextSize #246

@circular17

Description

@circular17

TBGRABitmap.TextSize doesn't take into account the kerning while TBGRABitmap.TextOut does.

The kerning is for example that "T" and "e" and be put closer because they fit together. So the result of TextSize can be bigger than the actual text width.

TBGRABitmap.TextOut relies on TCanvas.TextRect function, which relies on LCLIntf.DrawText (see forum thread). The latter can be used to get a measurement that takes into account kerning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions