[squeak-dev] The Inbox: TrueType-tobe.54.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 13 10:13:40 UTC 2020

A new version of TrueType was added to project The Inbox:

==================== Summary ====================

Name: TrueType-tobe.54
Author: tobe
Time: 13 July 2020, 12:13:36.544882 pm
UUID: 168679d8-a9fa-4d8b-9689-2d2e06dc29f9
Ancestors: TrueType-mt.53

when encountering an invalid font while scanning a file, skip that font

=============== Diff against TrueType-mt.53 ===============

Item was changed:
  ----- Method: TTFileDescription class>>readFontsFrom: (in category 'instance creation') -----
  readFontsFrom: aFilename
  	"Reads and returns all the fonts in the given file"
  		TTFileDescription readFontsFrom: 'batang.ttc'.
  	^self openFontFile: aFilename do:[:file|
  		(self fontOffsetsInFile: file)
+ 			collect:[:offset| [self new on: aFilename offset: offset] on: Error do: [nil]]
- 			collect:[:offset| self new on: aFilename offset: offset]
  			thenSelect:[:font| font notNil]].

More information about the Squeak-dev mailing list