Source code

Revision control

Copy as Markdown

Other Tools

# Reference for 2061411-bitmap-scale.yaml: the same local raster space the screen
# path falls back to for a bitmap-strike glyph, with the transform's scale stated
# explicitly. Screen raster space must pick that scale up on its own, or the glyph
# is rasterized at its untransformed size and the shader scales the small image
# up (bug 2064316); 2061411-bitmap-scale-notref.yaml pins that failure mode.
root:
items:
- type: stacking-context
bounds: [0, 0, 800, 600]
transform: scale(3)
transform-origin: [0, 0]
raster-space: local(3.0)
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: local(3.0)
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: local(3.0)
items:
- text: "000"
origin: 20 330
size: 20
font: "Proggy.ttf"
embedded-bitmaps: true