Open
Bug 729672
(CodeHunter)
Opened 12 years ago
Updated 2 years ago
Canvas: Large Texts are not displayed large enough using the fillText Method [fontsize > 4000px]
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: net.code.hunter, Unassigned)
References
()
Details
Drawing large text on a canvas element with fillText-Method does draw too small text. The text seems to stack it's size somewhere around fontsize 4000-5000px. Zooming into the text by increasing the fontsize, works up to font size 4000 above the text keeps at it's a certain (max) size and somewhy starts to move toward the bottom, maybe because my site moves it's position because it is expecting the text to be larger. I would have expected the font to grow, until a dot for example fills the whole screen with a white rectangle. (using white color for my text) // the given url does not write any text larger than 4900px fontsize The sourcecode is taken from a googlecode project: http://code.google.com/p/html5-canvas-presentation/
Comment 1•12 years ago
|
||
Is this canvas-specific? I thought we generally capped font sizes to avoid DoS attacks....
Reporter | ||
Comment 2•12 years ago
|
||
Well whereas normal fonts cap at a far smaller size I thought that would be different on canvas. I don't understand in how far large fonts can cause DoS attacks, however, this means it's a "feature" no bug? Is there any pretty looking workaround for huge fonts? (Drawing on an image-buffer and scaling that image when drawing it looks really bad)
if blink and webkit have a cap on 2d canvas font size, it's much higher than firefox's. if mitigating dos attacks is still a legitimate concern, could raising the limit by a few orders of magnitude be considered?
Updated•9 years ago
|
Component: Canvas: 2D → Layout: Text
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•