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

Lucas Cordiviola lucarda27 at hotmail.com
Sun Feb 12 10:03:05 CET 2017


Cool,

Do you think this needs further testing before implementation?


Alex can come with some news tomorrow testing DejaVu on all platforms.


Mensaje telepatico asistido por maquinas.


________________________________
From: Dan Wilcox <danomatika at gmail.com>
Sent: Sunday, February 12, 2017 8:39 AM
To: Lucas Cordiviola
Cc: Pd-List; Jonathan Wilkes; Alexandre Torres Porres
Subject: Re: [PD] cross platforms issues with displaying fonts in vanilla but not in Purr Data


On Feb 12, 2017, at 1:21 AM, Lucas Cordiviola <lucarda27 at hotmail.com<mailto: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

--------
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/895ff016/attachment-0001.html>


More information about the Pd-list mailing list