Sample Header Ad - 728x90

Fontconfig weight configuration not taking effect

0 votes
0 answers
18 views
I have the following fontconfig configuration, but the font weights aren't changing as expected. I discovered that changing target="font" to target="pattern" makes it work.
Noto Sans
    
    
      medium
    
    
      medium
    
  

  
    
      PingFang SC 
    
    
        medium
    
      
        medium
    
  

  
    
      SF Pro Text
    
    
        medium
    
    
      medium
Based on my research, I believe target="font" should work as well. Could anyone help me understand what might be causing this behavior?
Asked by paraline (1 rep)
Feb 11, 2025, 03:08 PM