You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "xingZhang (JIRA)" <ji...@apache.org> on 2018/05/03 08:25:00 UTC

[jira] [Commented] (WEEX-293) By adding fonts to Dom.addRule, memory will increase and no memory will be released.

    [ https://issues.apache.org/jira/browse/WEEX-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462097#comment-16462097 ] 

xingZhang commented on WEEX-293:
--------------------------------

hi  [~xiaozhongwei] , actually, the reason why custom font use a lot of memory is that for a text label will holds a custom ttf or woff,  that's not memory leak, it's performance.

 

we have try to register a custom font to reduce this case, but it seems useless,  trying another way to optimize it, you can also submit an pull request to fix it, thanks.

> By adding fonts to Dom.addRule, memory will increase and no memory will be released.
> ------------------------------------------------------------------------------------
>
>                 Key: WEEX-293
>                 URL: https://issues.apache.org/jira/browse/WEEX-293
>             Project: Weex
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 0.18
>         Environment: IOS 
>            Reporter: xiaozhongwei
>            Assignee: xingZhang
>            Priority: Blocker
>         Attachments: WX20180418-112429@2x.png
>
>
> Because it is the English version of the App, so the text font has the use of demand, so the project is initialized by the time a number of fonts are loaded, and then referenced in the project through the font-family. But in the process of using, it is found that every letter and font appear to be loaded repeatedly, resulting in an unlimited increase in memory and no release.
>  
> 1,Use dom.addRule add fontface 
> 2,Add style to text component .
> 3,An article used in font-family



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)