content icon indicating copy to clipboard operation
content copied to clipboard

CanvasRenderingContext2D.fontStretch - make live example work

Open hamishwillee opened this issue 3 years ago • 1 comments

Fixes #20208

@Elchi3 and @bsmth - got font stretch working for rendering text.

The trick was knowing that I was working with a font that contained variable font information "for sure". Once I had that, I was able to realize the FontFace name for the font was wrong.

I have split up the example so that there is more explanation of the relevant code.

hamishwillee avatar Sep 16 '22 07:09 hamishwillee

Preview URLs

External URLs

URL: /en-US/docs/Web/API/CanvasRenderingContext2D/fontStretch Title: CanvasRenderingContext2D.fontStretch

(this comment was updated 2022-09-20 07:06:42.239339)

github-actions[bot] avatar Sep 16 '22 07:09 github-actions[bot]