Yes, that's why I suggested looking in there. The relevant variables are:

* font_metrics 
* font_zoom2_metrics
* font_measured
* font_zoom2_measured

The first two are an array of pixel sizes per character used when trying to 
find the font size that fits. This is done in the fit_font_into_metrics proc.

The second two arrays contain the measured sizes: fontsizes charwidth charheight

Note that there is also code in the C core which accesses these sizes and you 
may get a consistency check error when changing some of the metric numbers.

> On Mar 23, 2018, at 7:10 AM, pd-list-requ...@lists.iem.at wrote:
> 
> Date: Fri, 23 Mar 2018 06:09:57 +0000
> From: Liam Goodacre <liamg...@hotmail.com <mailto:liamg...@hotmail.com>>
> Cc: Pd-List <pd-list@lists.iem.at <mailto:pd-list@lists.iem.at>>
> Subject: Re: [PD] reporting the dimensions of a symbol / float atom
> Message-ID:
>       
> <vi1pr0102mb358432fe108d15b17afb4230fc...@vi1pr0102mb3584.eurprd01.prod.exchangelabs.com
>  
> <mailto:vi1pr0102mb358432fe108d15b17afb4230fc...@vi1pr0102mb3584.eurprd01.prod.exchangelabs.com>>
>       
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 
>> If anyone wants to suggest fixes too he font sizing algorithm, start by
>> looking into the metrics and related font procedures in pd-gui.tcl.
> 
> Is pd-gui.tcl where we would find the right variable to call if we were 
> trying to report the dimensions of an atom?

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



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to