removal of redundant font functions #136
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The ticket addressed with this pull request was to investigate if font_load_size and font_has_size have a use or if they are redundant and if they are redundant they should be removed. After investigating them and testing the drawing functions I have found that when you actually draw with a font size that it does not have it just loads the font size anyway without using either function making them both redundant even in the use case of checking for errors.
This change does have the potential to cause issues with people who currently are using the functions though and would need the documentation to be updated, but it does address the ticket. Personally i'm not positive if the change is neccassery but this is the change so others can review it and see if it is useful.
Type of change
Please delete options that are not relevant.
expected)
How Has This Been Tested?
This can be tested just through building and running the test programs more specifically the text test it should run as normal apart from the parts that explicitly test the two functions those have been removed, now all the fonts are loaded just through the draw function.
Testing Checklist
Checklist
Extra note
this fulfills the ticket but I'm not sure if the removal is necassery, the functions are definetly redundant but it will absolutly mess with people who are using the functions in their work even if their code would work fine without it, because they would have it in the code it would likely throw errors. But I wasn't able to find any other pull requests like this to compare it to so if you know more please give feedback in your peer review.