Todas las versiones v0.1.3415 Oct 2026Renderizado, API web y DOM Feed

Las notas de versión están escritas en inglés.

Canvas text measured and drawn like the reference browser, and SVG shapes you can measure

Charts drawn on a canvas size their labels with measureText, and Floati answered with a rough guess of half a character's height per letter. It now measures with the same fonts it paints with, so widths match the reference browser to the hundredth of a pixel, and bold and italic canvas text really is bold and italic. SVG gains its geometry: bounding boxes, transform matrices, path lengths, points along a path and hit tests, checked on 1,740 generated cases every build.

equal to the reference browserText widths
16 / 17 + 1 exactChecks vs the reference browser
Destacados2

Canvas charts that fit their labels

AntesDespués
Antes: a canvas bar chart sized with measureText
Antes
Después: a canvas bar chart sized with measureText
Después · v0.1.341
La misma página en el navegador de referencia
Navegador de referencia

This is a canvas chart laid out the way Chart.js and most canvas chart kits do it: each value badge is sized to its text with measureText, and the title and badges are bold. Floati guessed text widths and drew bold text in the regular face, so badges came out the wrong size and nothing was bold. It now measures and draws with the real faces, bold and italic included, and matches the reference browser.

a canvas bar chart sized with measureText

Text widthsequal to the reference browserBold, italicreal faces

SVG shapes you can measure

1,740generated geometry cases checked every build

Diagram editors, map widgets and animated line drawings ask SVG where things are: a shape's bounding box, the matrix that places it on screen, how long a path is and where a point along it falls. These now all work, matching the reference browser on 16 of 17 checks. On the 17th Floati is more exact than the reference browser: the reference browser measures circles and arcs with a coarse approximation and reads a circle of radius 10 as 62.43 long instead of 2 pi r, 62.83.

Checks vs the reference browser16 / 17 + 1 exactBroken versions caught2 of 2

Qué cambió

6 cambios
  1. RenderizadoCanvas measureText measures with the fonts the canvas draws with: widths, the font's ascent and descent, and the ink box of the text match the reference browser to the hundredth of a pixel. It used to guess half a character height per letter, so charts sized and centred their labels around widths up to a fifth off. Measuring learns nothing about your computer: font names resolve through Floati's fixed table, never through the fonts you have installed.
  2. RenderizadoCanvas text honours font weight and style: bold and italic labels use the bold and italic faces, both when measured and when drawn. SVG text honours font-weight and font-style too.
  3. RenderizadoThe canvas font setting reads the whole CSS font shorthand: sizes in px, pt, em, rem and percent, weight and style keywords, and a line height.
  4. API web y DOMSVG geometry arrives: getBBox (tight around curves and arcs, and around a group's transformed children), getCTM and getScreenCTM through nested transforms and view boxes, nearestViewportElement, farthestViewportElement and ownerSVGElement, getTotalLength and getPointAtLength, and isPointInFill and isPointInStroke. 16 of 17 checks match the reference browser; on the 17th Floati measures arcs exactly where the reference browser approximates them.
  5. RenderizadoProven on every build: 1,740 generated shapes and paths check exact perimeters, that a path written with relative commands measures the same as written absolute, that every point along a path stays inside its box and the path reaches all four sides, and that each matrix is the product of its transforms. Two deliberately broken versions were each caught.
  6. API web y DOMPages that animate along a path call getPointAtLength on every frame: the outline of each shape is worked out once and reused until its attributes change.

Pruébalo en tu navegador

Cada prueba se ejecuta en vivo en el navegador con el que lees. No se envía nada a ningún sitio.

ComprobarTu navegadorFloati
Canvas measureText uses the real font (bold is wider than regular)ComprobandoSí
SVG bounding boxes (getBBox)ComprobandoSí
SVG path lengths (getTotalLength)ComprobandoSí
Points along a path (getPointAtLength)ComprobandoSí
SVG transform matrices (getCTM)ComprobandoSí
SVG hit testing (isPointInFill)ComprobandoSí
Superadas 6 / 6
Todo desde la v0.1.341 en un solo lugar

Versiones

v0.1.0 - 0.1.9 · 10 Jul 2026418v0.1.427 · 25 Nov 2026