-
Notifications
You must be signed in to change notification settings - Fork 76
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
Demo Programm, changing text size and position #27
Comments
I think what you are observing is that the viewpoint is always scaled to contain the whole text, no matter what font size you use. Then again, I haven't looked at this code in many years. |
Yes, you are right, the viewport scaled the whole text. |
i get this too |
There is a way in your library to set the display coordinates to render a text at a specific position, or to set the font size directly (without scaling the projection matrix)?.
On the file glyphs-demo.cc I tried to change the coordinates of glyphy_point_t top_left for example to:
glyphy_point_t top_left = {100, 50}; demo_buffer_move_to (buffer, &top_left);
But the text is still render in the same position.
At the function
demo_buffer_add_text
the fourth parameter should be the font size, but f.e. if you change the size from 1 to f.e.:demo_buffer_add_text (buffer, text, font, 100);
there is no any difference with
demo_buffer_add_text (buffer, text, font, 1);
Of course if I scale the projection matrix it grows.
Is this a bug, or what is the purpose for both parameter ?
The text was updated successfully, but these errors were encountered: