mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 02:27:01 -04:00 
			
		
		
		
	Fix #385
This commit is contained in:
		
							parent
							
								
									b3d8351fb4
								
							
						
					
					
						commit
						c8ddf9f774
					
				| @ -154,7 +154,10 @@ def get_font_families(): | ||||
|         ffiles = findsystem.findFonts() | ||||
|         zlist = [] | ||||
|         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: | ||||
|                 wt, italic = describe.modifiers(font) | ||||
|             except: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user