Workaround for CoreText layout failure with in-memory typefaces.