I have used the font woodcut medium in my fonts folder its the folder windows makes (C:\Windows\Fonts) and the color of it is not in pygame is there like a way to make it use the font color in the font edit: my font is at C:\Windows\Fonts\woodcut.ttf edit: here's the font the font
Asked
Active
Viewed 30 times
0
-
Please include the code ([mre]). You should be able to pass in a color when you `render` the font. – Eric Jin Aug 13 '22 at 23:04
-
What makes you say the color is not in pygame? Can you show us the color? – Jobo Fernandez Aug 13 '22 at 23:11
-
@JoboFernandez i dont know how – julie valdez Aug 13 '22 at 23:12
-
@julievaldez is it not a plain color having its own rgb or hex value? – Jobo Fernandez Aug 13 '22 at 23:12
-
@JoboFernandez yes – julie valdez Aug 13 '22 at 23:13
-
@JoboFernandez yes it is two colors – julie valdez Aug 13 '22 at 23:16
-
May not be very helpful, but does this (https://stackoverflow.com/questions/64825207/multi-colored-text-in-pygame) answer your question? – Jobo Fernandez Aug 13 '22 at 23:18
-
@JoboFernandez i edited my post too see if that helps you get an idea – julie valdez Aug 13 '22 at 23:23
-
Have you tried using sysfont? ```pygame.font.SysFont(name, size, bold=False, italic=False)```. https://www.pygame.org/docs/ref/font.html#pygame.font.SysFont. Then use render after that. – Jobo Fernandez Aug 13 '22 at 23:25
-
@JoboFernandez ima try that – julie valdez Aug 13 '22 at 23:26
1 Answers
0
Have you tried using sysfont? pygame.font.SysFont(name, size, bold=False, italic=False). pygame.org/docs/ref/font.html#pygame.font.SysFont. Then use render after that. – Jobo Fernandez ansererd correct

julie valdez
- 1
- 2