You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/02/15 02:52:20 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18272: [Bug] 看起來任何option的fontFamily都無作用,官網上的預覽也一樣

echarts-bot[bot] commented on issue #18272:
URL: https://github.com/apache/echarts/issues/18272#issuecomment-1430677657

   @hsutingwei It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] It seems that any option fontFamily does not work, and the same goes for previews on the website
   
   **BODY**
   
   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ```
   option = {
     xAxis: {
       type: 'category',
       nameTextStyle: {
           fontFamily: 'DFKai-sb',
       },
       data: ['open statement', 'label', 'standard letter', 'strength', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [120, 200, 150, 80, 70, 110, 130],
         type: 'bar',
         showBackground: true,
         backgroundStyle: {
           color: 'rgba(180, 180, 180, 0.2)'
         }
       }
     ]
   };
   ```
   
   ### Current Behavior
   
   I wanted to set it to
   fontFamily: 'Arial, DFKai-sb'
   I remember that it was OK to write like this in the previous version, but the current version has no effect
   So change to only standard italics
   fontFamily: 'DFKai-sb'
   But it is still useless, even modifying the fontFamily in the Example on the official website does not change the font
   
   The currently developed code needs to modify the font in xAxis, yAxis, tooltip, legend, label, but it seems that the font has not changed
   
   ### Expected Behavior
   
   The name on the x-axis should be in italics
   
   ### Environment
   
   ```markdown
   - OS:
   -Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
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