Source code
Revision control
Copy as Markdown
Other Tools
# A scale transform - uniform or not - must apply to embedded-bitmap glyphs.
# The platform backends force an identity glyph shape for bitmap fonts, so a
# scale survives rasterization only as the scalar `RasterizedGlyph::scale`, which
# cannot express one; on the device glyph path that painted the glyph at its
# where the shader applies the full transform to the glyph image - at the scale the
# transform asks for, so this also asserts that the glyph is rasterized at its
root:
items:
- type: stacking-context
bounds: [0, 0, 800, 600]
transform: scale(3)
transform-origin: [0, 0]
raster-space: screen
items:
- text: "000"
origin: 20 40
size: 20
font: "Proggy.ttf"
embedded-bitmaps: true
- type: stacking-context
bounds: [0, 0, 800, 600]
transform: scale(1, 3)
transform-origin: [0, 0]
raster-space: screen
items:
- text: "000"
origin: 20 90
size: 20
font: "Proggy.ttf"
embedded-bitmaps: true
- type: stacking-context
bounds: [0, 0, 800, 600]
transform: scale(3, 1)
transform-origin: [0, 0]
raster-space: screen
items:
- text: "000"
origin: 20 330
size: 20
font: "Proggy.ttf"
embedded-bitmaps: true