mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 10:37:00 -04:00 
			
		
		
		
	Fix #385
This commit is contained in:
		
							parent
							
								
									b3d8351fb4
								
							
						
					
					
						commit
						c8ddf9f774
					
				| @ -154,7 +154,10 @@ def get_font_families(): | |||||||
|         ffiles = findsystem.findFonts() |         ffiles = findsystem.findFonts() | ||||||
|         zlist = [] |         zlist = [] | ||||||
|         for ff in ffiles: |         for ff in ffiles: | ||||||
|             font = describe.openFont(ff) |             try: | ||||||
|  |                 font = describe.openFont(ff) | ||||||
|  |             except: # Some font files cause ttfquery to raise an exception, in which case they are ignored | ||||||
|  |                 continue | ||||||
|             try: |             try: | ||||||
|                 wt, italic = describe.modifiers(font) |                 wt, italic = describe.modifiers(font) | ||||||
|             except: |             except: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user