Write text on canvas with background
问题 Is it possible to write image on canvas and write text with background? For example like this: 回答1: How text works in canvas Unfortunately no, you can't produce text with background with the text methods - only fill or outline the text itself. This is because the glyphs from the typeface (font) are converted to individual shapes or paths if you want, where the background of it would be the inner part of the glyph itself (the part you see when using fill). There is no layer for the black-box