Discussion:
[bug #27099] Incomplete implementation of -[NSFontDescriptor matchingFontDescriptorsWithMandatoryKeys:]
Yavor Doganov
2009-07-24 14:57:40 UTC
Permalink
URL:
<http://savannah.gnu.org/bugs/?27099>

Summary: Incomplete implementation of -[NSFontDescriptor
matchingFontDescriptorsWithMandatoryKeys:]
Project: GNUstep
Submitted by: yavor
Submitted on: Fri 24 Jul 2009 05:57:38 PM EEST
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any

_______________________________________________________

Details:

It looks like this method always returns an empty array. This is a big
problem for Emacs.app with the new font driver; it doesn't even start.




_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?27099>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Fred Kiefer
2009-07-26 21:53:02 UTC
Permalink
Follow-up Comment #1, bug #27099 (project gnustep):

Yes, this method plus a few others are not properly implemented for font
descriptors. Doing this correctly will require a bunch of changes in the back
end as well.
There is a proper mapping from the font descriptor to the concept of a font
config pattern, this could be used for the backends that support font config
(cairo and xlib on modern systems). For the other backends we could just try
to replace our self defined font information array, which we also call font
descriptor, with Apples new class.
This will require changes in NSFont, NSFontDescriptor and NSFontManager as
well as changes in all four backends (and as the xlib backend allows for
different font mechanisms we will need multiple implementations for these as
well)
I am willing to work on that after the next GNUstep release, but help surely
is welcome here.


_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?27099>

_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
Fred Kiefer
2009-08-23 21:45:30 UTC
Permalink
Follow-up Comment #2, bug #27099 (project gnustep):

I just added a better support for font descriptors to GNUstep in SVN. Could
you please give this a try?

I also looked at the code of Emacs to see, which parts of font descriptors
actually get used there and noticed that it doesn't rely on the glyph
generation in GNUstep. This part has been added about a year ago, is there any
problem with our code, or did somebody forget to adjust to this feature?

Also line 500 in nsfont.m of emacs seems to be leaking font descriptors.

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?27099>

_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
Fred Kiefer
2009-09-07 14:13:18 UTC
Permalink
Update of bug #27099 (project gnustep):

Status: None => In Progress
Assigned to: None => FredKiefer


_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?27099>

_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
malkovich
2017-05-04 12:19:34 UTC
Permalink
Follow-up Comment #3, bug #27099 (project gnustep):

Found a lot of useful information, thanks to the administrator for the post!
http://www.19216811ip.mobi

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?27099>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Fred Kiefer
2018-02-09 20:24:24 UTC
Permalink
Update of bug #27099 (project gnustep):

Status: In Progress => Ready For Test
Open/Closed: Open => In Test


_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/bugs/?27099>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/

Loading...