You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/05/21 14:22:42 UTC

[GitHub] [echarts] ButuzGOL opened a new issue #15013: Custom font strange behaviour

ButuzGOL opened a new issue #15013:
URL: https://github.com/apache/echarts/issues/15013


   ### Version
   5.1.0
   
   ### Steps to reproduce
   Have issue when i am starting working with custom font
   
   Ussing cra
   and load font this way 
   ```
   @font-face {
     font-family: 'Manrope';
     font-style: normal;
     font-display: swap;
     font-weight: 400;
     src: url('./files/manrope-latin-400-normal.woff2') format('woff2'), url('./files/manrope-all-400-normal.woff') format('woff');
   }
   ```
   
   Initially it takes much time to load font
   <img width="989" alt="Screen Shot 2021-05-21 at 5 06 27 PM" src="https://user-images.githubusercontent.com/196564/119150443-1f996600-ba57-11eb-93e8-993c3bda8468.png">
   
   But network shows that all fonts loaded
   
   Than it applies not to all charts
   <img width="791" alt="Screen Shot 2021-05-21 at 5 06 46 PM" src="https://user-images.githubusercontent.com/196564/119150520-32ac3600-ba57-11eb-8c49-6f6529a8b95f.png">
   
   
   when dev console closed it works better but some time it take time it has custom font issue
   
   ### What is expected?
   Custom font loads proper without jumping
   
   ### What is actually happening?
   Custom font jumping
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart edited a comment on issue #15013: Custom font strange behaviour

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #15013:
URL: https://github.com/apache/echarts/issues/15013#issuecomment-846318118


   It's not strange. The custom fonts defined in CSS will be loaded asynchronized, ECharts can't calculate the size of the font before success. It's better to load charts after the font is loaded.  You may try to use [`webfontloader`](https://github.com/typekit/webfontloader).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #15013: Custom font strange behaviour

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15013:
URL: https://github.com/apache/echarts/issues/15013#issuecomment-906958969


   This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] closed issue #15013: Custom font strange behaviour

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #15013:
URL: https://github.com/apache/echarts/issues/15013


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #15013: Custom font strange behaviour

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15013:
URL: https://github.com/apache/echarts/issues/15013#issuecomment-845985309


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart commented on issue #15013: Custom font strange behaviour

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15013:
URL: https://github.com/apache/echarts/issues/15013#issuecomment-846318118


   It's not strange. The custom fonts defined in CSS will be loaded synchronized, ECharts can't calculate the size of the font before success. It's better to load charts after the font is loaded.  You may try to use [`webfontloader`](https://github.com/typekit/webfontloader).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org