bugGNUstep - Bugs: bug #27099, Incomplete implementation of...

Group
 
 

bug #27099: Incomplete implementation of -[NSFontDescriptor matchingFontDescriptorsWithMandatoryKeys:]

Submitter:  Yavor Doganov <yavor>
Submitted:  Fri 24 Jul 2009 02:57:38 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

  Spam posted by _141573
  Spam posted by _141573
  Spam posted by _108826
Sun 23 Aug 2009 09:45:29 PM UTC, comment #2: 

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.

Fred Kiefer <FredKiefer>
Group Member
Sun 26 Jul 2009 09:53:01 PM UTC, comment #1: 

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.

Fred Kiefer <FredKiefer>
Group Member
Fri 24 Jul 2009 02:57:38 PM UTC, original submission:  

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.

Yavor Doganov <yavor>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _141573 (Posted a comment)
  • -email is unavailable- added by _108826 (Posted a comment)
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-15 FredKiefer StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2018-02-09 FredKiefer StatusIn Progress Ready For Test
        Open/ClosedOpen In Test
    2009-09-07 FredKiefer StatusNone In Progress
        Assigned toNone FredKiefer

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code