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.
Hot on the heels of #74, I'm stirring up text rendering yet again.
Namely, I've removed
FontCacheType
entirely. It was something of an implementation detail that had poked its head out and now it's gone.Font
objects are really just basic descriptions of a font to be loaded when rendering text; they aren't concerned with how they're cached now.FontCacheType
was up until now the way to control if text was rendered in raster mode or vector mode. That decision is now captured by theTextDrawingMode.TextDrawRaster
enumeration value which is also the default value forGraphicsState.text_drawing_mode
.TextDrawRaster
is the only text drawing mode which uses the raster rendering path; all other modes use the slower [but much more powerful] vector rendering path.Another breaking change is that the canvas
draw_text
method now uses thefill
paint instead of thestroke
paint when drawing in raster mode. If all of your colored text turns black after this change, that's the reason.