Re: [pygame] Time to load font with pygame.font.SysFont on Mac

2021-04-04 Thread René Dudfield
The Mac font lists are in this closed issue: https://github.com/pygame/pygame/issues/179 On Sunday, April 4, 2021, René Dudfield wrote: > Hi, > > There probably should be an open issue for this. The initial query is > quite slow unfortunately, and I can’t find a quicker query. What can be > don

Re: [pygame] Time to load font with pygame.font.SysFont on Mac

2021-04-04 Thread René Dudfield
Hi, There probably should be an open issue for this. The initial query is quite slow unfortunately, and I can’t find a quicker query. What can be done is to use a known set of fonts for different or some subset of OS versions... Apple did/does publish these lists somewhere, so a fix would be to fi

Re: [pygame] Time to load font with pygame.font.SysFont on Mac

2021-04-04 Thread Jason Marshall
If I remember correctly, there's a external call to fc-list that is very slow. At one time, I intended to improve this situation by removing the fc-list dependency on Mac and Linux and instead collecting only the needed font data by using freetype and/or Mike C. Fletcher's TTFQuery, but I got too b

Re: [pygame] Time to load font with pygame.font.SysFont on Mac

2021-04-04 Thread Greg Ewing
On 5/04/21 9:29 am, Irv Kalb wrote: If I load a font like the system font using None with a call to pygame.font.font, it happens almost immediately. But if I load a font by name using pygame.font.SysFont, it's taking over 7 seconds on my Mac to load. It doesn't seem to matter which font I try

[pygame] Time to load font with pygame.font.SysFont on Mac

2021-04-04 Thread Irv Kalb
[I apologize if this is a duplicate, but I haven't seen this message show up on the list.] I have tracked down a huge slowdown on loading fonts with pygame.font.SysFont Mac OSX 11.2.3 Python 3.9.1 Pygame 2.0.1 If I load a font like the system font using None with a call to pygame.font.font, i

[pygame] Time to load font with pygame.font.SysFont

2021-04-01 Thread Irv Kalb
I have tracked down a huge slowdown on loading fonts with pygame.font.SysFont Mac OSX 11.2.3 Python 3.9.1 Pygame 2.0.1 If I load a font like the system font using None with a call to pygame.font.font, it happens almost immediately. But if I load a font by name using pygame.font.SysFont, it's ta