Skip to content
HALOWERK

File Formats and Conversion

font glyf quadratic contours

Return explicit line and quadratic Bezier segments from supplied TrueType on-curve and off-curve contour points.

POST https://format.halowerk.com/v1/font-glyf-quadratic-contours

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
contoursarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "contours": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "x": {
              "type": "number",
              "minimum": -1e+30,
              "maximum": 1e+30
            },
            "y": {
              "type": "number",
              "minimum": -1e+30,
              "maximum": 1e+30
            },
            "on_curve": {
              "type": "boolean"
            }
          },
          "required": [
            "x",
            "y",
            "on_curve"
          ],
          "additionalProperties": false
        },
        "maxItems": 100,
        "minItems": 1
      },
      "maxItems": 20,
      "minItems": 1
    }
  },
  "required": [
    "contours"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "contours": [
    [
      {
        "x": 0,
        "y": 0,
        "on_curve": true
      },
      {
        "x": 1,
        "y": 2,
        "on_curve": false
      },
      {
        "x": 2,
        "y": 0,
        "on_curve": true
      }
    ]
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’