Add stubs for more font info.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24443 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2007-01-31 14:36:42 +00:00
parent eb5e01cf4f
commit 5dcabf4505
4 changed files with 68 additions and 53 deletions

View file

@ -22,7 +22,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
*/
#include <math.h>
@ -221,6 +222,7 @@ static GSFontEnumerator *sharedEnumerator = nil;
- (void) dealloc
{
RELEASE(coveredCharacterSet);
RELEASE(fontDictionary);
RELEASE(fontName);
RELEASE(familyName);
@ -332,6 +334,11 @@ static GSFontEnumerator *sharedEnumerator = nil;
return nil;
}
- (NSCharacterSet*) coveredCharacterSet
{
return coveredCharacterSet;
}
- (NSString*) encodingScheme
{
return encodingScheme;
@ -357,6 +364,11 @@ static GSFontEnumerator *sharedEnumerator = nil;
return matrix;
}
- (unsigned) numberOfGlyphs
{
return numberOfGlyphs;
}
- (float) pointSize
{
return matrix[0];

View file

@ -1005,14 +1005,12 @@ static BOOL flip_hack;
- (unsigned) numberOfGlyphs
{
// FIXME
return 0;
return [fontInfo numberOfGlyphs];
}
- (NSCharacterSet*) coveredCharacterSet
{
// FIXME
return nil;
return [fontInfo coveredCharacterSet];
}
- (NSFontDescriptor*) fontDescriptor