-- Created on: 1993-09-07 -- Created by: GG -- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class FontMap from Aspect inherits TShared from MMgt ---Version: 0.0 ---Purpose: This class defines a FontMap object. ---Keywords: ---Warning: ---References: uses FontStyle from Aspect, FontMapEntry from Aspect, SequenceOfFontMapEntry from Aspect raises BadAccess from Aspect is Create returns FontMap from Aspect; AddEntry (me : mutable; AnEntry : FontMapEntry from Aspect) ---Level: Public ---Purpose: Adds an entry in the font map . -- Warning: Raises BadAccess if FontMap size is exceeded. raises BadAccess from Aspect; AddEntry (me : mutable; aStyle : FontStyle from Aspect) returns Integer from Standard; ---Level: Public ---Purpose: Search an identical font style entry in the font map -- and returns the FontMapEntry Index if exist. -- Or add a new entry and returns the computed FontMapEntry index used. Size( me ) returns Integer from Standard is static; ---Level: Public ---Purpose: Returns the Allocated fontmap Size Index( me ; aFontmapIndex : Integer ) returns Integer from Standard ---Level: Public ---Purpose: Returns the FontMapEntry.Index of the FontMap -- at rank . raises BadAccess from Aspect is static; ---Trigger: Raises BadAccess if the index less than 1 or -- greater than Size. Dump( me ) ; Entry ( me ; AnIndex : Integer from Standard ) returns FontMapEntry from Aspect ---Level: Public ---Purpose: Returns the Font map entry with the index . -- Warning: Raises BadAccess if the index less than 1 -- or greater than Size. raises BadAccess from Aspect is static; fields mydata : SequenceOfFontMapEntry from Aspect is protected; end FontMap ;