Edge case: Fix logic in choosing CFF vs glyf so we get the correct error if the font has neither.
Edge case: Fix logic in choosing CFF vs glyf so we get the correct error if the font has neither.

googlefonts/fonttools,fonttools/fonttools