Sha256: 6a74dc42851a6e1d8949066b9fab1bc4544019a34f89046693d07cb8351f30fa

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

{
  "title": "Text Block",
  "extends": "block",
  "description":"A single line text block. Multiline text-blocks inherit from this one, see textflow for ref.",
  "name": "text_block",
  "type":"object",
  "properties":{
    "defaulttext": {
      "description": "Content if no text is supplied by the client.",
      "type": "string"
    },
    "fillcolor":{
      "description": "Text fill color. Defaults to black",
      "type": "color",
      "default": "gray 0"
    },
    "fontname":{
      "description": "Name of the font. Must be the exact file-name as present on the system(Case-Sensitive), excl. file extension. Must be an OTF, TTF unicode font as all text is UTF-8.",
      "type": "string"
    },
    "fontsize":{
      "description": "Size of the font in points",
      "type": "float"
    },
    "fontstyle":{
      "description": "Style of the font. If the font does not support the style e.g. Bold print occurs 3 times with normal style.",
      "type": "enum",
      "values": ["normal", "bold", "italic","bolditalic"]
    },
    "strokecolor":{
      "description": "Stroke(border) color of the text",
      "type": "string",
      "format": "color",
      "default": "gray 0"
    },
    "fitmethod":{
      "type": "string",
      "enum": ["auto","nofit","clip","meet", "slice", "entire"],
      "default": "auto"
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happypdf_json_schema-0.0.2 schema/v1.0/text_block.json