Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontsize change doesn't bring any results in DrawText3D #148

Closed
adamfierek opened this issue May 17, 2018 · 7 comments · Fixed by #187
Closed

Fontsize change doesn't bring any results in DrawText3D #148

adamfierek opened this issue May 17, 2018 · 7 comments · Fixed by #187
Assignees
Labels
bug Good First Issue Good first issues for potential contributors

Comments

@adamfierek
Copy link

DrawText3d method takes a fontSize argument which seems to be not working. How to change font size using this method?

@GianlucaGrotto
Copy link

I have the same problem, is there any one can help to solve?

@adamfierek
Copy link
Author

I don't use SharpGL anymore. Offscreen rendering in C++ and texture transfer are bringing better performance results

@GianlucaGrotto
Copy link

ok, I partialy solved scaling the text, but in not so satisfing.

@dwmkerr
Copy link
Owner

dwmkerr commented Jul 10, 2020

I'm looking at this now

@dwmkerr dwmkerr self-assigned this Jul 10, 2020
@dwmkerr dwmkerr added bug Good First Issue Good first issues for potential contributors labels Jul 10, 2020
dwmkerr added a commit that referenced this issue Jul 10, 2020
The fontsize parameter doesn't (and cannot) work. Instead, perform a
scale transformation before rendering the text.

Closes #148.
@dwmkerr
Copy link
Owner

dwmkerr commented Jul 10, 2020

OK I've double checked - the font height is passed to the CreateFont function, but the underlying wglUseFontOutlines function doesn't actually care about the size of the font, it just creates the geometry. The only way to scale the font is by performing a scale transformation.

I've removed the parameter and updated the samples.

@GianlucaGrotto
Copy link

GianlucaGrotto commented Jul 10, 2020 via email

@GianlucaGrotto
Copy link

is there a way to get the region size of the text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Good First Issue Good first issues for potential contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants