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

Playing with code to render individual chars instead of strings #275

Merged
merged 4 commits into from
Jan 15, 2021

Conversation

eteran
Copy link
Owner

@eteran eteran commented Jan 15, 2021

Playing with code to render individual chars instead of strings so we have more control over the width and placement of them

so we have more control over the width and placement of them
More correctly adjusting the draw rect (I don't think it made much of a difference because I disabled clipping, but still better to be correct)
@eteran eteran merged commit 967f443 into master Jan 15, 2021
@eteran eteran deleted the character-render-algorithm branch January 15, 2021 04:04
1div0 pushed a commit to 1div0/nedit-ng that referenced this pull request Mar 24, 2021
…an#275)

* Playing with code to render individual chars instead of strings
so we have more control over the width and placement of them

* When rendering non-bold/non-italic strings, render as fast as possible.

* Always use the fast path if we are using a good font that is the same
width for both bold and normal

* Some minor improvments to the code.
More correctly adjusting the draw rect (I don't think it made much of a difference because I disabled clipping, but still better to be correct)
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.

1 participant