{
  "metadata": {
    "title": "Text that keeps to a shape"
  },
  "drawings": [
    {
      "name": "shapes",
      "box": {
        "llx": 0.0,
        "lly": 0.0,
        "urx": 595.0,
        "ury": 842.0
      },
      "items": [
        {
          "type": "shaped_text",
          "shape": {
            "rect": {
              "llx": 63.0,
              "lly": 427.0,
              "urx": 279.0,
              "ury": 733.0
            }
          },
          "around": [
            {
              "llx": 166.0,
              "lly": 620.0,
              "urx": 286.0,
              "ury": 740.0,
              "gap": 8.0
            }
          ],
          "content": "A column of text with a note set into its top right-hand corner. The lines beside the note are shorter: each one stops eight points before the note's edge, and the line under it takes the whole width again. Nothing here was measured by hand. The flow is told where the column is and where the note stands, and it works out, line by line, how much room each line has. The same text in another language runs to a different number of lines, and the note still sits where it was placed, with the text going round it.",
          "font": "DejaVuSans",
          "font_size": 10.5
        },
        {
          "type": "shaped_text",
          "shape": {
            "ellipse": {
              "llx": 316.0,
              "lly": 517.0,
              "urx": 532.0,
              "ury": 733.0
            }
          },
          "content": "Inside a circle, every line is as wide as the circle is at the height of its letters, measured where the circle is narrowest along that line, so no letter crosses the edge. The lines grow longer towards the middle and shorter towards the bottom, and each one is set flush left inside its own width.",
          "font": "DejaVuSans",
          "font_size": 10.5
        },
        {
          "type": "shaped_text",
          "shape": {
            "polygon": [
              [
                121.0,
                367.0
              ],
              [
                474.0,
                367.0
              ],
              [
                530.0,
                255.0
              ],
              [
                474.0,
                143.0
              ],
              [
                121.0,
                143.0
              ],
              [
                65.0,
                255.0
              ]
            ]
          },
          "around": [
            {
              "llx": 237.0,
              "lly": 265.0,
              "urx": 358.0,
              "ury": 345.0,
              "gap": 8.0
            }
          ],
          "content": "A six-sided shape with a picture box in its middle. Where a line meets the box, it is set in two parts: the text fills the stretch to the left of the box, then carries on in the stretch to its right, and only then goes down to the next line. A word never sits in a stretch too narrow for it. Above and below the box, the lines take the whole width the shape gives them, and along the slanted sides they grow shorter, so the block follows the outline from its top to its bottom. The shape is given as a list of corners, and any outline whose sides do not cross can be filled the same way.",
          "font": "DejaVuSans",
          "font_size": 10.5
        }
      ]
    }
  ],
  "items": [
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 790.0,
        "urx": 595.0,
        "ury": 809.2
      },
      "content": [
        "Text that keeps to a shape"
      ],
      "font": "DejaVuSans",
      "font_size": 16.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 766.0,
        "urx": 595.0,
        "ury": 777.4
      },
      "content": [
        "Each block below is one text set line by line: a line stands only where the shape holds it"
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 753.0,
        "urx": 595.0,
        "ury": 764.4
      },
      "content": [
        "whole, and where a rectangle sits in its way, the line goes round it or carries on beyond it."
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 56.0,
        "lly": 420.0,
        "urx": 286.0,
        "ury": 740.0
      },
      "stroke": {
        "width": 0.5,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "path",
      "segments": [
        {
          "ellipse": {
            "centre": {
              "x": 424.0,
              "y": 625.0
            },
            "rx": 115.0,
            "ry": 115.0
          }
        }
      ],
      "stroke": {
        "width": 0.5,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "path",
      "segments": [
        {
          "move_to": {
            "x": 116.0,
            "y": 375.0
          }
        },
        {
          "line_to": {
            "x": 479.0,
            "y": 375.0
          }
        },
        {
          "line_to": {
            "x": 539.0,
            "y": 255.0
          }
        },
        {
          "line_to": {
            "x": 479.0,
            "y": 135.0
          }
        },
        {
          "line_to": {
            "x": 116.0,
            "y": 135.0
          }
        },
        {
          "line_to": {
            "x": 56.0,
            "y": 255.0
          }
        },
        "close"
      ],
      "stroke": {
        "width": 0.5,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 166.0,
        "lly": 620.0,
        "urx": 286.0,
        "ury": 740.0
      },
      "fill": [
        1.0,
        0.97,
        0.85
      ],
      "stroke": {
        "width": 0.5,
        "color": [
          0.6,
          0.5,
          0.2
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 237.0,
        "lly": 265.0,
        "urx": 358.0,
        "ury": 345.0
      },
      "fill": [
        0.85,
        0.85,
        0.85
      ],
      "pages": [
        1
      ]
    },
    {
      "type": "flow",
      "rect": {
        "llx": 172.0,
        "lly": 626.0,
        "urx": 280.0,
        "ury": 734.0
      },
      "content": "A note set into the column. The text keeps eight points clear of it.",
      "font": "DejaVuSans",
      "font_size": 8.5,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 245.0,
        "lly": 302.0,
        "urx": 595.0,
        "ury": 313.4
      },
      "content": [
        "Picture"
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "pages": [
        1
      ]
    },
    {
      "type": "drawing",
      "drawing": "shapes",
      "x": 0.0,
      "y": 0.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 406.0,
        "urx": 595.0,
        "ury": 417.4
      },
      "content": [
        "Around a note"
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 309.0,
        "lly": 496.0,
        "urx": 595.0,
        "ury": 507.4
      },
      "content": [
        "Inside a circle"
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 118.0,
        "urx": 595.0,
        "ury": 129.4
      },
      "content": [
        "Inside a polygon, around a picture box"
      ],
      "font": "DejaVuSans",
      "font_size": 9.5,
      "pages": [
        1
      ]
    }
  ]
}
