Skip to content

FreeType::getTextSize doesn't return correct height #2444

Open
@Moldoteck

Description

@Moldoteck

System information (version)

  • OpenCV =>4.2.0
  • FreeType2 contrib=>4.2.0
  • Operating System / Platform => Win10
  • Compiler => MVSC
Detailed description

Text height is not correct
.

Steps to reproduce

When calling this function with any text, any height, and zero thickness, I always get height equal to 1.
When calling this function with any text, any height, and thickness>0, I always get height equal to 2*thickness

const cv::Size newTextSize{ freeType->getTextSize("hello", 100, 0, &baseline) };
const cv::Size otherTextSize{ freeType->getTextSize("world", 100, 2, &baseline) };

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions