The Inbox: TrueType-tobe.54.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: TrueType-tobe.54.mcz

commits-2
A new version of TrueType was added to project The Inbox:
http://source.squeak.org/inbox/TrueType-tobe.54.mcz

==================== 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]].
  !