Skip to content

Commit

Permalink
hard check (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Nov 11, 2019
1 parent 760fb1f commit 04096d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drawBot/context/baseContext.py
Expand Up @@ -8,6 +8,7 @@
from fontTools.pens.basePen import BasePen

from drawBot.misc import DrawBotError, cmyk2rgb, warnings, transformationAtCenter
from drawBot.macOSVersion import macOSVersion

from .tools import openType
from .tools import variation
Expand Down Expand Up @@ -1151,8 +1152,9 @@ def append(self, txt, **kwargs):
fontAttributes = {}
if coreTextFontFeatures:
fontAttributes[CoreText.kCTFontFeatureSettingsAttribute] = coreTextFontFeatures
# fallback for macOS < 10.13:
fontAttributes[CoreText.NSFontFeatureSettingsAttribute] = nsFontFeatures
if macOSVersion < "10.13":
# fallback for macOS < 10.13:
fontAttributes[CoreText.NSFontFeatureSettingsAttribute] = nsFontFeatures
if coreTextFontVariations:
fontAttributes[CoreText.NSFontVariationAttribute] = coreTextFontVariations
if self._fallbackFont:
Expand Down

0 comments on commit 04096d9

Please sign in to comment.