You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/07/02 11:41:04 UTC

[1/3] incubator-weex-site git commit: Update dom.md

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 <wq...@qq.com>
Authored: Mon Jul 2 19:15:34 2018 +0800
Committer: GitHub <no...@github.com>
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
 


[2/3] incubator-weex-site git commit: Update dom.md

Posted by ha...@apache.org.
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/672ef3b0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/672ef3b0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/672ef3b0

Branch: refs/heads/master
Commit: 672ef3b068c3f7b169a87161c5c9001782049db7
Parents: 2d58009
Author: wqyfavor <wq...@qq.com>
Authored: Mon Jul 2 19:20:51 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Mon Jul 2 19:20:51 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/672ef3b0/source/cn/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/source/cn/references/modules/dom.md b/source/cn/references/modules/dom.md
index 977d7cb..bb910a5 100644
--- a/source/cn/references/modules/dom.md
+++ b/source/cn/references/modules/dom.md
@@ -76,6 +76,12 @@ domModule.addRule('fontFace', {
 })
 ```
 
+**注意事项**
+
+`addRule` 方法里的 `fontFamily` 可以随意取。这个名字不是字体真正的名字。字体真正的名字(font-family),也就是注册到系统中的名字是保存在字体二进制文件中的。你需要确保你使用的字体的真正名字(font-family)足够特殊,否则在向系统注册时可能发生冲突,导致注册失败,你的字符被显示为‘?’。
+
+如果你使用 http://www.iconfont.cn/ 来构建你的 iconfont。确保在项目设置中,设置一个特殊的 font-family 名字。默认是 “iconfont”,但极大可能发生冲突。
+
 #### 示例
 
 [add rule fontface](http://dotwe.org/vue/95b2c6716f37066d5f44c5c75c979394)


[3/3] incubator-weex-site git commit: Update dom.md for iconfont notification (#171)

Posted by ha...@apache.org.
Update dom.md for iconfont notification (#171)


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/c6a572de
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/c6a572de
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/c6a572de

Branch: refs/heads/master
Commit: c6a572de93b55e855692fd67cf0195aeb5508940
Parents: 1170d28 672ef3b
Author: Hanks <zh...@gmail.com>
Authored: Mon Jul 2 19:40:30 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Mon Jul 2 19:40:30 2018 +0800

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