[PD] cross platforms issues with displaying fonts in vanilla but not in Purr Data

Dan Wilcox danomatika at gmail.com
Sun Feb 12 09:39:26 CET 2017


> On Feb 12, 2017, at 1:21 AM, Lucas Cordiviola <lucarda27 at hotmail.com> wrote:
> 
> >Bad metaphor, not a fight. 
> 
> You’re right!!!
> 
> Is just because there are no girls on this list.
> And this is a typical masculine joke.

Oh I got it, didn’t want it. There are women (not girls) on this list.

> >The actual culprit is that sys_font & sys_fontweight are set as Monaco (normal) when building for Mac and Deja Vu Sans Mono (bold) when building for the other platforms in s_main.c. 
> 
> How difficult is to deploy DejaVu on Mac?
> 
> On Windows it needs an installer that puts it on the c:\windows\fonts and add some registry-keys.


Typically, add a key to the app bundle Info.plist and include the font in the app bundle's Resource folder. This means the font does not have to be installed system- or user- wide but only used by the app itself. This assumes Tk’s handling of app bundles picks up on registered fonts from the plist (it should).

As for Windows, it looks like it’s possible to load a font that comes with the app (the Windows API alls this a Private Font Collection <https://msdn.microsoft.com/en-us/library/windows/desktop/ms533820(v=vs.85).aspx>): http://code.activestate.com/lists/tcl-core/8158/#sthash.qJEhQALT.dpuf <http://code.activestate.com/lists/tcl-core/8158/#sthash.qJEhQALT.dpuf>

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170212/f8a8aadb/attachment.html>


More information about the Pd-list mailing list