forked from hbacila/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
font.schema.json
94 lines (94 loc) · 4.33 KB
/
font.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm/assets/font",
"title": "Font",
"meta:extensible": false,
"description": "",
"type": "object",
"definitions": {
"font": {
"properties": {
"xdm:childFontFiles": {
"type": "array",
"name": "Child Font Files",
"meta:usereditable": false,
"description":
"The list of file names for the font files that make up a composite font. See also `composite`, `fontFace`.",
"items": {
"type": "string"
}
},
"xdm:composite": {
"type": "boolean",
"name": "Composite",
"meta:usereditable": false,
"description":
"`true` for composite fonts. See also `childFontFiles`."
},
"xdm:fontFace": {
"type": "string",
"name": "Font Face",
"meta:usereditable": false,
"description":
"The name of the typeface, i.e. the specific weight or instance of the fontFamily. For example: Bold, Italic."
},
"xdm:fontFamily": {
"type": "string",
"name": "Font Family",
"meta:usereditable": false,
"description":
"Complete collection of typefaces in different weights and classifications, but having the same point size, and designed to work together. For example, a Times Roman font family may include Times Roman Bold, Times Roman Extra Bold, Times Roman Italic, Times Roman Bold Italic, Times Roman Condensed, etc., all in the same size."
},
"xdm:fontFileName": {
"type": "string",
"name": "Font File Name",
"meta:usereditable": false,
"description":
"The font file name (not a complete path). For example: `Times New Roman.otf`. Some products are not storing file extension information. XMP spec is open about specifics of the file name. If font information is stored in multiple files, use the semicolon separator to store file names. For example: `zx___.mmm; zx__.pfm`",
"examples": ["zx___.mmm", "zx__.pfm"]
},
"xdm:fontName": {
"type": "string",
"name": "Font Name",
"meta:usereditable": false,
"description":
"PostScript name of the font. For example: `TimesNewRomanPS-BoldItalicMT`. `font_name` is mandatory to identify the font used in an asset but an asset may not have a `font` property if it has only images/vector arts (no text)."
},
"xdm:fontType": {
"type": "string",
"name": "Font Type",
"meta:usereditable": false,
"description":
"The font type, such as TrueType, Type 1, OpenType, and so on. `font_type` is mandatory to identify font category but an asset may not have a `font` property if it has only images/vector arts (no text).",
"meta:enum": ["TrueType", "Type 1", "OpenType"]
},
"xdm:versionString": {
"type": "string",
"meta:usereditable": false,
"enum": ["version", "nameId 5", "CIDFontVersion", ""],
"meta:enum": {
"version": "for Type1 fonts",
"nameId 5": "for Apple TrueType and OpenType",
"CIDFontVersion": "for CID fonts",
"": "for bitmap fonts"
},
"description":
"The Adobe CoolType font engine allows two fonts with the same PostScript name and different technologies to be used at the same time, but not if they are from different versions. So even without this data for a given document you will have unique font data. However, the version can tell you if the font has changed metrics, glyph forms or other important information. This is useful for comparing fonts in two documents or fonts in a document to those in your system."
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/font"
}
],
"required": ["xdm:fontName", "xdm:fontType"],
"meta:status": "experimental"
}