添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createFont is not working. I just installed some new fonts in my pc but they doesn't work in Processing.
They appear in PFont.list(); but they don't work. Also, if I go into Tools>Create Font all the fonts I installed appears as "Dialog.plain" that looks exactly the same as Arial.
I tried reinstalling the fonts and also reinstalling Processing but it didn't work

I'm using Processing 3.4 on Windows 10

Same problem here: for some reason, certain fonts in the system (like any downloaded from Google Fonts for instance) are not available for use with createFont() and when searched via Tools>Create Font , in the alphabetic place where they should appear there is instead a pointer to Dialog.plain !

I have noticed though that it might be a Windows 10 specific problem, since I get the same behavior on my two Windows 10 machines, but not on my Windows 8 machine (for the exact same font files...)

@MasterPlaying @senorcat I think I found the problem!

Apparently, Windows 10 by default installs user fonts in a folder different than C:\Windows\Fonts , in my case C:\Users\MyUserName\AppData\Local\Microsoft\Windows\Fonts . Therefore, Processing detects their name on the system, but cannot locate their files, defaulting to Dialog.plain . I guess this happens here for the PDF renderer for example?

processing/java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java Line 210 94144be

Solution: make sure your ttf files or similar are copied in the actual C:\Windows\Fonts folder. I tried it myself, worked like a charm!

@benfry not sure if this is worth a feature request to try to parse the user fonts folder for newer Windows versions... :)