Andrew Kaiser
Andrew Kaiser
seems like the `context.measureText` results are very inaccurate. ```ts const text = "Hello There" const family = './fonts/stick-no-bills/StickNoBills-VariableFont_wght.ttf' // load a font const font = await Deno.readFile(family) const font_identifier =...
if this looks like a real issue I can create a separate issue or change the title on this one
Here are some repros. First a jsfiddle which correctly measures the width of text: https://jsfiddle.net/8dk71toq/2/ and second, deno-canvas incorrectly measuring the same text: ```ts import { createCanvas } from 'https://deno.land/x/[email protected]/mod.ts'...
some further debugging shows that the builtin font (`monospace` in the case of my mac) correctly measures the text. `50px monospace` is shown below.  loading a different font and...
Got it. Well it is unfortunate that measuring text can't be done with deno canvas. I wanted to build out text captions with borders. I suppose there's an extremely hacky...
It would definitely be cool to see an ffi bridge to skia. For what I need though, if the paragraph api is exposed that would probably get me everything I...
@DjDeveloperr could you give me a primer on contributing to this library? Would it be this file https://github.com/DjDeveloperr/deno-canvas/blob/master/src/lib.js#L2750? Its hard to tell if this is a source file because some...
@DjDeveloperr its been a minute since I worked on this. Heres a first attempt at measuring text. I can properly measure ascent and descent of text from the baseline. I...
fwiw I created an issue with skia https://bugs.chromium.org/p/skia/issues/detail?id=12586
whats the current CanvasKit version?