mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:07:39 +00:00
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:
parent
eb5e01cf4f
commit
5dcabf4505
4 changed files with 68 additions and 53 deletions
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue