Skip to content

Commit

Permalink
Fix doc_classes links and notes, add pdf docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Dec 28, 2018
1 parent cf280a5 commit 36bfe47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc_classes/TLShapedAttributedString.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
Font size. Attribute type: [code]int[/code]
</constant>
<constant name="TEXT_ATTRIBUTE_FONT_FEATURES" value="4" enum="TextAttribute">
Comma separated list of OpenType feature tags. More info: <link>https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags</link>. Attribute type: [String]
Comma separated list of OpenType feature tags. More info: https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags. Attribute type: [String]
</constant>
<constant name="TEXT_ATTRIBUTE_LANGUAGE" value="5" enum="TextAttribute">
Language code. Attribute type: [String]
Expand Down
15 changes: 5 additions & 10 deletions doc_classes/TLShapedString.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,16 @@
<description>
Note 1: Code points, Characters, Clusters and Glyphs

[codeblock]
* A code point is a single encoding UTF-16 unit (Unicode character or half of the surrogate pair).
* A character is a full Unicode charecter.
* A grapheme cluster is the abstract unit of a writing system (a letter, a digit, or punctuation).
* A glyph is a shape used to render a character or a sequence of characters.
- A code point is a single encoding UTF-16 unit (Unicode character or half of the surrogate pair).
- A character is a full Unicode charecter.
- A grapheme cluster is the abstract unit of a writing system (a letter, a digit, or punctuation).
- A glyph is a shape used to render a character or a sequence of characters.

In general, code point, characters, clusters and glyphs do not have one-to-one correspondence.

[/codeblock]

Note 2: Encoding

[codeblock]
TLShapedString uses UTF-16 encoding, all positions accepted and returned by TLShapedString function are measured in UTF-16 code points.
[/codeblock]

</description>
<tutorials>
Expand Down Expand Up @@ -558,7 +553,7 @@
Style name (Regular, Bold, Italic, Oblique etc.). Default: [code]"Regular"[/code]
</member>
<member name="features" type="String" setter="set_features" getter="get_features">
Comma separated list of OpenType feature tags. More info: <link>https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags</link>. Default: [code]""[/code]
Comma separated list of OpenType feature tags. More info: https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags. Default: [code]""[/code]
</member>
<member name="language" type="String" setter="set_language" getter="get_language">
Language code. Default: [code]""[/code]
Expand Down
Binary file added docs/libgdtl.pdf
Binary file not shown.

0 comments on commit 36bfe47

Please sign in to comment.