Skip to content

Conversation

@Montel
Copy link
Contributor

@Montel Montel commented Mar 15, 2024

No description provided.

@Montel Montel self-assigned this Mar 15, 2024
}

#[repr(C)]
pub struct QFontMetrics {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a test in the standalones would be good too :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add it.

@Montel Montel force-pushed the add_qfontmetrics branch from c42f8fa to 0fa3bbf Compare March 15, 2024 14:31
@Montel
Copy link
Contributor Author

Montel commented Apr 8, 2024

no idea why it crashs...

const int pointSize = 40;
f.setPointSize(pointSize);
const auto m = constructor_qfontmetrics(f);
QCOMPARE(m.ascent(), 57);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value depend against font size etc...
=> we can't test it...

No idea what testing from constructor...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants