testing bitmap font generation and draw using stb_truetype

This commit is contained in:
2017-02-02 21:54:48 +00:00
parent 06b19dc596
commit d2f59c3ea1
6 changed files with 97 additions and 16 deletions

View File

@@ -3,21 +3,24 @@
<layout id="button">
<border width="50" margin="0 5 0 0" color=".1" thickness="2" border-color=".5"></border>
</layout>
<layout id="multi-button-item">
<border height="50%" width="50%" color=".1" thickness="2" border-color=".5" />
</layout>
<layout id="multi-button">
<node width="50" margin="0 5 0 0" dir="row" wrap="1">
<border height="50%" width="50%" color=".1" thickness="2" border-color=".5" />
<border height="50%" width="50%" color=".1" thickness="2" border-color=".5" />
<border height="50%" width="50%" color=".1" thickness="2" border-color=".5" />
<border height="50%" width="50%" color=".1" thickness="2" border-color=".5" />
<ref id="multi-button-item"/>
<ref id="multi-button-item"/>
<ref id="multi-button-item"/>
<ref id="multi-button-item"/>
</node>
</layout>
<layout id="main">
<node dir="col" wrap="0" width="100%" height="100%" pad="5">
<!-- toolbar -->
<border height="50" width="100%" pad="5" dir="row" color=".2">
<ref id="multi-button"></ref>
<ref id="multi-button"></ref>
<ref id="multi-button"></ref>
<ref id="multi-button"/>
<ref id="multi-button"/>
<ref id="multi-button"/>
<ref id="button"></ref>
<border width="50" margin="0 5 0 0" color=".1" thickness="2" border-color="1"></border>
<border width="50" margin="0 5 0 0" color=".2" thickness="2" border-color="1"></border>