Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 2d5800948 -> c6a572de9


Update dom.md

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/1170d287
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/1170d287
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/1170d287

Branch: refs/heads/master
Commit: 1170d287ec0bf1327ddcfa8f6777fd6902a0adcd
Parents: 2d58009
Author: wqyfavor <[email protected]>
Authored: Mon Jul 2 19:15:34 2018 +0800
Committer: GitHub <[email protected]>
Committed: Mon Jul 2 19:15:34 2018 +0800

----------------------------------------------------------------------
 source/references/modules/dom.md | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/1170d287/source/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/source/references/modules/dom.md b/source/references/modules/dom.md
index d1dc03c..48c8934 100644
--- a/source/references/modules/dom.md
+++ b/source/references/modules/dom.md
@@ -79,6 +79,11 @@ domModule.addRule('fontFace', {
   'src': "url('http://at.alicdn.com/t/font_1469606063_76593.ttf')"
 });
 ```
+**Important Notes**
+
+You can name `fontFamily` in `addRule` as you wish in your page, any string is 
OK. But this is not the real font-family name of the font file. The real name 
or system name for the font is stored in binrary data of ttf file. You must 
ensure that the real font-family name of font file is unique. Or your font may 
not be successfully registered to device and your text may display as a '?'.
+
+Specially, if you are using http://www.iconfont.cn/ to build your iconfont. 
Make sure that you set a unique enough font-family name for your font in 
project settings.
 
 #### Example
 

Reply via email to