Skip to content

Commit

Permalink
Add GDScript/GDNative font fallback iterator wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed May 6, 2019
1 parent f1d14a6 commit b230bb9
Show file tree
Hide file tree
Showing 29 changed files with 682 additions and 38 deletions.
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def get_doc_classes():
"TLProtoControl",
"TLProtoControlSelection",
"TLLabel",
"TLLineEdit"
"TLLineEdit",
"TLFontIterator"
]

def get_doc_path():
Expand Down
38 changes: 33 additions & 5 deletions doc_classes/TLFontFamily.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,64 @@
<description>
</description>
</method>
<method name="add_face_unlinked">
<method name="add_face_for_language">
<return type="void">
</return>
<argument index="0" name="style" type="String">
</argument>
<argument index="1" name="ref" type="TLFontFace">
</argument>
<argument index="2" name="lang" type="String">
</argument>
<description>
</description>
</method>
<method name="add_face_for_language">
<method name="add_face_for_script">
<return type="void">
</return>
<argument index="0" name="style" type="String">
</argument>
<argument index="1" name="ref" type="TLFontFace">
</argument>
<argument index="2" name="lang" type="String">
<argument index="2" name="script" type="String">
</argument>
<description>
</description>
</method>
<method name="add_face_for_script">
<method name="add_face_unlinked">
<return type="void">
</return>
<argument index="0" name="style" type="String">
</argument>
<argument index="1" name="ref" type="TLFontFace">
</argument>
<argument index="2" name="script" type="String">
<description>
</description>
</method>
<method name="get_face" qualifiers="const">
<return type="TLFontIterator">
</return>
<argument index="0" name="style" type="String">
</argument>
<description>
</description>
</method>
<method name="get_face_for_language" qualifiers="const">
<return type="TLFontIterator">
</return>
<argument index="0" name="style" type="String">
</argument>
<argument index="1" name="lang" type="String">
</argument>
<description>
</description>
</method>
<method name="get_face_for_script" qualifiers="const">
<return type="TLFontIterator">
</return>
<argument index="0" name="style" type="String">
</argument>
<argument index="1" name="script" type="String">
</argument>
<description>
</description>
Expand Down
13 changes: 13 additions & 0 deletions doc_classes/TLFontIterator.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="TLFontIterator" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<constants>
</constants>
</class>
52 changes: 35 additions & 17 deletions docs/html/_sources/classes/class_tlfontfamily.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,25 @@ A set of fonts that make up a font family.
Methods
-------

+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face<class_TLFontFamily_method_add_face>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)** |
+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face_unlinked<class_TLFontFamily_method_add_face_unlinked>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)** |
+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face_for_language<class_TLFontFamily_method_add_face_for_language>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref, String lang **)** |
+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face_for_script<class_TLFontFamily_method_add_face_for_script>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref, String script **)** |
+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| bool | :ref:`has_style<class_TLFontFamily_method_has_style>` **(** String style **)** const |
+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`remove_style<class_TLFontFamily_method_remove_style>` **(** String style **)** |
+------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face<class_TLFontFamily_method_add_face>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)** |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face_for_language<class_TLFontFamily_method_add_face_for_language>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref, String lang **)** |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face_for_script<class_TLFontFamily_method_add_face_for_script>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref, String script **)** |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`add_face_unlinked<class_TLFontFamily_method_add_face_unlinked>` **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)** |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`TLFontIterator<class_TLFontIterator>` | :ref:`get_face<class_TLFontFamily_method_get_face>` **(** String style **)** const |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`TLFontIterator<class_TLFontIterator>` | :ref:`get_face_for_language<class_TLFontFamily_method_get_face_for_language>` **(** String style, String lang **)** const |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`TLFontIterator<class_TLFontIterator>` | :ref:`get_face_for_script<class_TLFontFamily_method_get_face_for_script>` **(** String style, String script **)** const |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| bool | :ref:`has_style<class_TLFontFamily_method_has_style>` **(** String style **)** const |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`remove_style<class_TLFontFamily_method_remove_style>` **(** String style **)** |
+---------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+

Method Descriptions
-------------------
Expand All @@ -40,10 +46,6 @@ Method Descriptions

- void **add_face** **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)**

.. _class_TLFontFamily_method_add_face_unlinked:

- void **add_face_unlinked** **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)**

.. _class_TLFontFamily_method_add_face_for_language:

- void **add_face_for_language** **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref, String lang **)**
Expand All @@ -52,6 +54,22 @@ Method Descriptions

- void **add_face_for_script** **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref, String script **)**

.. _class_TLFontFamily_method_add_face_unlinked:

- void **add_face_unlinked** **(** String style, :ref:`TLFontFace<class_TLFontFace>` ref **)**

.. _class_TLFontFamily_method_get_face:

- :ref:`TLFontIterator<class_TLFontIterator>` **get_face** **(** String style **)** const

.. _class_TLFontFamily_method_get_face_for_language:

- :ref:`TLFontIterator<class_TLFontIterator>` **get_face_for_language** **(** String style, String lang **)** const

.. _class_TLFontFamily_method_get_face_for_script:

- :ref:`TLFontIterator<class_TLFontIterator>` **get_face_for_script** **(** String style, String script **)** const

.. _class_TLFontFamily_method_has_style:

- bool **has_style** **(** String style **)** const
Expand Down
18 changes: 18 additions & 0 deletions docs/html/_sources/classes/class_tlfontiterator.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the TLFontIterator.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_TLFontIterator:

TLFontIterator
==============

**Inherits:**

**Category:** Core

Brief Description
-----------------



4 changes: 4 additions & 0 deletions docs/html/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
<li class="toctree-l3"><a class="reference internal" href="../classes/class_tlfontfamily.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../classes/class_tlfontiterator.html">TLFontIterator</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../classes/class_tlfontiterator.html#brief-description">Brief Description</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../classes/class_tlicudataloader.html">TLICUDataLoader</a><ul>
<li class="toctree-l3"><a class="reference internal" href="../classes/class_tlicudataloader.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="../classes/class_tlicudataloader.html#properties">Properties</a></li>
Expand Down
4 changes: 4 additions & 0 deletions docs/html/classes/class_tlbitmapfontface.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlfontiterator.html">TLFontIterator</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontiterator.html#brief-description">Brief Description</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlicudataloader.html">TLICUDataLoader</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#properties">Properties</a></li>
Expand Down
4 changes: 4 additions & 0 deletions docs/html/classes/class_tldynamicfontface.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlfontiterator.html">TLFontIterator</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontiterator.html#brief-description">Brief Description</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlicudataloader.html">TLICUDataLoader</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#properties">Properties</a></li>
Expand Down
4 changes: 4 additions & 0 deletions docs/html/classes/class_tlfontface.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
<li class="toctree-l3"><a class="reference internal" href="class_tlfontfamily.html#method-descriptions">Method Descriptions</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlfontiterator.html">TLFontIterator</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlfontiterator.html#brief-description">Brief Description</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="class_tlicudataloader.html">TLICUDataLoader</a><ul>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#brief-description">Brief Description</a></li>
<li class="toctree-l3"><a class="reference internal" href="class_tlicudataloader.html#properties">Properties</a></li>
Expand Down
Loading

0 comments on commit b230bb9

Please sign in to comment.