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

Draw the fr*cking fonts scaled #906

Closed
leijurv opened this issue Jan 16, 2019 · 3 comments
Closed

Draw the fr*cking fonts scaled #906

leijurv opened this issue Jan 16, 2019 · 3 comments
Assignees
Labels
GUI Suggestion
Milestone

Comments

@leijurv
Copy link
Member

leijurv commented Jan 16, 2019

dont scale up fonts in the gui, just draw them at a larger size.

im making this issue so that brady remembers without me harassing him to do it every day or two

draw the text of clickgui and hud at a different point in the frame where it goes directly to the screen at native resolution (not gui upscaled). multiply the x, y, and height by the gui scaling factor so it goes to the same place and size as it would otherwise.

@leijurv leijurv added Suggestion GUI labels Jan 16, 2019
@LeafHacker
Copy link
Contributor

LeafHacker commented Jan 16, 2019

I remember looking into this one (late) night while being pestered by leijurv. Looked like creating a larger bitmap when loading the TTF into a texture (ui.font.FontData.setFont()) and then tweaking the xy multiplier and/or GL scaling in ui.font.BasicFontRenderer.drawString() might work? Should probably be contributed back upstream to CFont if it works too...

@leijurv leijurv changed the title Draw the friggin fonts scaled Draw the fr*cking fonts scaled Jan 22, 2019
@leijurv leijurv added this to the 4.6 milestone Feb 25, 2019
@leijurv
Copy link
Member Author

leijurv commented Feb 25, 2019

screen shot 2019-02-25 at 12 50 13 pm

screen shot 2019-02-25 at 12 50 24 pm

^ before and after, done in 4.6

@leijurv leijurv closed this as completed Feb 25, 2019
@SpicyBigGithub
Copy link

SpicyBigGithub commented Feb 25, 2019

Brooooooooooooo

@LeafHacker LeafHacker assigned leijurv and unassigned ZeroMemes Feb 25, 2019
@leijurv leijurv modified the milestones: 4.6, 4.5 Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Suggestion
Projects
None yet
Development

No branches or pull requests

4 participants