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

Lucas Cordiviola lucarda27 at hotmail.com
Tue Feb 14 21:36:59 CET 2017


Attached Screen-shot,


Note that the modified .tcl is using bold font, but you can imagine the normal font.



Mensaje telepatico asistido por maquinas.


________________________________
From: Pd-list <pd-list-bounces at lists.iem.at> on behalf of Lucas Cordiviola <lucarda27 at hotmail.com>
Sent: Tuesday, February 14, 2017 7:43 PM
To: Alexandre Torres Porres
Cc: pd-list at lists.iem.at
Subject: Re: [PD] cross platforms issues with displaying fonts in vanilla but not in Purr Data


Ok Alex,

I got some good news to you, but not to everybody.

You can make vanilla look-like extended. You have to tweek “pd-gui.tcl”.


The .tcl from “extended” had these lines:

# sizes of chars for each of the Pd fixed font sizes:
#  fontsize  width(pixels)  height(pixels)
set font_fixed_metrics {
    8 5 11
    9 6 12
    10 6 13
    12 7 16
    14 8 17
    16 10 19
    18 11 22
    24 14 29
    30 18 37
    36 22 44
}

And vanilla has these:

# sizes of chars for each of the Pd fixed font sizes:
# width(pixels)  height(pixels)
set font_metrics {
    6 10
    7 13
    9 16
    10 21
    15 25
    25 45
}




Backup your “pd-gui.tcl” somewhere & then edit the one you are using with these values:

set font_metrics {
    5 11
    6 13
    7 16
    8 17
    15 25
    25 45

We are modifying just the first four from extended, 8, 10 12 & 14 (14 should be 16 btw).

Please test it on all Oss.

I have tested it on mswindows with dejavu bold with coll-help from your git.

Salutti,
Lucarda





Mensaje telepatico asistido por maquinas.


________________________________
From: Alexandre Torres Porres <porres at gmail.com>
Sent: Tuesday, February 14, 2017 7:39 PM
To: Lucas Cordiviola
Cc: pd-list at lists.iem.at
Subject: Re: [PD] cross platforms issues with displaying fonts in vanilla but not in Purr Data

I also opened an issue in Purr Data about this https://git.purrdata.net/jwilkes/purr-data/issues/258


2017-02-14 17:21 GMT-02:00 Alexandre Torres Porres <porres at gmail.com<mailto:porres at gmail.com>>:

2017-02-11 21:40 GMT-02:00 Alexandre Torres Porres <porres at gmail.com<mailto:porres at gmail.com>>:
well... not sure if something important was clear enough, let me say again, in windows, Pd Extended came and loaded DejaVu Sans Mono!

well, I'm referring to this message when I tried to point out for the second time about this issue with print screens - I got an answer as if I was stating the obvious and making several pointless remarks, but then I also had tried a third time to make this clear and then a fourth attempt on a different thread... this has been a fifth time, and, well, this is my Last Ditch Effort in raising this issue...

In Extended, the font still looks ok and nice, it doesn't corrupt the visuals in the patch, it's only in vanilla that things get screwed up

see?

here, let me show you 2 print screens, a patch in Extended that looks a lot like the Mac Os version with Monaco, that looks also reasonably the same as Purr Data in every platform, and how vanilla in windows with dejavu sans got screwy... in the same way as in linux...

ok? clear now? I'm sending those print screens again, and I'm including a third print from Purr Data and a fourth with vanilla on Mac Os with Monaco, hope it is clear now...

so, again, this is:
- vanilla with DejaVu in windows;
- Extended with DejaVu in windows;
- Purr Data with DejaVu in Mac Os
- Vanilla with Monaco in Mac Os

What are we seeing here?

1) Purr Data in Mac Os with DejaVu lloks like Vanilla with Monaco in MacOs!
2) Purr Data with DejaVu in Mac Os looks like Extended with DejaVu in Windows
3) Vanilla in Windows with DejaVu looks like something else...

My point, once again, is that there's a consistency between Pd-Extended and Purr Data, but things get complicated when Pd Vanilla comes in... things do not look the same in vanilla and the others even with the same fonts!

cheers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170214/cb080576/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all-02.jpg
Type: image/jpeg
Size: 174906 bytes
Desc: all-02.jpg
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170214/cb080576/attachment-0001.jpg>


More information about the Pd-list mailing list