Ignore:
Timestamp:
01/08/08 19:18:06 (5 years ago)
Author:
erik
Message:

This removes the class magic based AllFonts?. The AllFonts? available in FL relies on actual font indices of open fonts. In RF, AllFonts? will raise a NonImplementedError?. The class should not be responsible for knowing which fonts are open, it's really up to the application to keep track of these things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/robofab/Lib/robofab/world.py

    r1 r19  
    8484 
    8585if world.inFontLab: 
    86         from robofab.objects.objectsFL import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont 
     86        from robofab.objects.objectsFL import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont, AllFonts 
    8787        lineBreak = "\n" 
    8888elif world.inPython: 
    89         from robofab.objects.objectsRF import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont 
     89        from robofab.objects.objectsRF import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont, AllFonts 
    9090 
    91 def AllFonts(): 
    92         """Return a list of all active fonts.""" 
    93         return RFont.getAllFonts() 
    9491 
    9592 
Note: See TracChangeset for help on using the changeset viewer.