On Fri, 2004-08-20 at 20:15, Keith Packard wrote:> Around 17 o''clock on Aug 16, Owen Taylor wrote: > > > So, I was trying to figure out how to exclude bitmap fonts when > > selecting fonts for printing, and my first thought was to > > do, effectively > > Hmm. Are you sure you want the fonts selected for printing to be > different from the fonts selected for the screen? Wouldn''t you rather let > the user de-select bitmap fonts for all environments?Users frequently want bitmap fonts on the screen; people became much happer with the switch to fontconfig when we added MiscFixed to the Red Hat default set of fonts. Users, however, don''t particular want documents to come out completely empty when printing. While it''s possible, I suppose, to write code to print bitmap fonts to PS output, it seems like a lot of work for something that is going to be atrociously ugly. If the app is primarily about printing ... a word processor, say, then for that app, then rejecting bitmap fonts is something you want to do for screen display of the document as well as printing, but you still need a way to do the rejection without making the user disable bitmap fonts entirely on their system.> I have a plan for this which involves configuration file extensions...I don''t see this as being particularly useful solution. ("Normal" users don''t edit fonts.conf, normal users don''t change their font configuration at all, in fact, even if you provide a GUI) Regards, Owen -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040821/31e66849/attachment.pgp
Around 17 o''clock on Aug 16, Owen Taylor wrote:> So, I was trying to figure out how to exclude bitmap fonts when > selecting fonts for printing, and my first thought was to > do, effectivelyHmm. Are you sure you want the fonts selected for printing to be different from the fonts selected for the screen? Wouldn''t you rather let the user de-select bitmap fonts for all environments? I have a plan for this which involves configuration file extensions... I can''t think of an alternative which doesn''t involve some kind of reject list in the FcFontSort API. -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040820/106989e6/attachment.pgp
So, I was trying to figure out how to exclude bitmap fonts when selecting fonts for printing, and my first thought was to do, effectively FcFontSort (... "<family> 18:outline=1"..., trim=1); But if you try that with, say: FcFontSort (... "MiscFixed 18:outline=1"..., trim=1); You get MiscFixed listed first since the family match is prioritized ahead of the outline match. Looking for ideas for how to implement this: 1) Create a custom FcFontSet from the results of FcFontList(). and use FcFontSetSort instead of FcFontSort(). Rather expensive. 2) Pass trim=False to FcFontSort, filter the results when trimming the list myself. Somewhat expensive, a pain to implement, though I''ve been thinking about switching to trimming FcFontSort() results myself anyways. Anything else? Thanks, Owen -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040816/6f3421bc/attachment.pgp