Browse Source

add custom font with cyrillic support

Nikolay Suslov 5 years ago
parent
commit
96cd06dc72

+ 3 - 1
public/defaults/proxy/vwf.example.com/aframe/ascene.js

@@ -183,7 +183,9 @@ this.textProto = function () {
             "color": "white",
             "value": "Text",
             "side": "double",
-            "class": "clickable"
+            "class": "clickable",
+            "font": "/vwf/model/aframe/fonts/custom-msdf.json",
+            "negate": false
         },
         children: {
             "interpolation":

+ 2 - 1
public/defaults/proxy/vwf.example.com/aframe/atext.vwf.yaml

@@ -23,4 +23,5 @@ properties:
   width:
   wrap-count:
   wrap-pixels:
-  z-offset:
+  z-offset:
+  negate:

+ 1 - 1
public/vwf/model/aframe.js

@@ -141,7 +141,7 @@ define(["module", "vwf/model", "vwf/utility"], function (module, model, utility)
                     'transparent', 'value',
                     'white-space', 'width',
                     'wrap-count', 'wrap-pixels',
-                    'z-offset'
+                    'z-offset', 'negate'
                 ],
 
                 'A-SKY': [

File diff suppressed because it is too large
+ 0 - 0
public/vwf/model/aframe/fonts/custom-msdf.json


BIN
public/vwf/model/aframe/fonts/custom.png


Some files were not shown because too many files changed in this diff