Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2176 > unrolled thread
| Started by | Luci Ellis <luci@verbeia.com> |
|---|---|
| First post | 2011-05-07 11:36 +0000 |
| Last post | 2011-05-09 10:20 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Undocumented function to determine em-width of font in points (or mm) Luci Ellis <luci@verbeia.com> - 2011-05-07 11:36 +0000
Re: Undocumented function to determine em-width of font in points (or mm) Luci Ellis <luci@verbeia.com> - 2011-05-08 11:35 +0000
Re: Undocumented function to determine em-width of font in points (or mm) Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-05-09 10:20 +0000
| From | Luci Ellis <luci@verbeia.com> |
|---|---|
| Date | 2011-05-07 11:36 +0000 |
| Subject | Undocumented function to determine em-width of font in points (or mm) |
| Message-ID | <iq3ar7$flq$1@smc.vnet.net> |
Dear all I vaguely remember that there is an undocumented function for extracting the length of an em in the current font, and expressing it in printers points, but I can't remember what it was. My problem is I need to create a graphics output that is a guaranteed absolute width in points (or mm). Each row in the grid needs to take its natural height, which GraphicsGrid or GraphicsColumn does not do (it creates equal-height rows). So I need to use Grid. But unlike GraphicsGrid, which uses points in the ImageSize option, Grid uses ems in the ItemSize option. I have a standard font so I should be able to map the font em to absolute units like points or mm, if only I can extract that em length in absolute units. Does anyone either remember the name of the undocumented function, or have another suggestion on how to do this? I am trying to write some functions to output various grids of plots, with titles and footnotes over the whole grid of plots. The formatting requirements of my employer are very, very precise. I can replicate the one-panel graphs pixel-for-pixel, but not when there is a grid of plots under the same title. Thanks in advance, Luci
[toc] | [next] | [standalone]
| From | Luci Ellis <luci@verbeia.com> |
|---|---|
| Date | 2011-05-08 11:35 +0000 |
| Message-ID | <iq5v5k$php$1@smc.vnet.net> |
| In reply to | #2176 |
On 2011-05-07 21:36:07 +1000, Luci Ellis said: > Dear all > I vaguely remember that there is an undocumented function for > extracting the length of an em in the current font, and expressing it > in printers points, but I can't remember what it was. > > My problem is I need to create a graphics output that is a guaranteed > absolute width in points (or mm). Each row in the grid needs to take > its natural height, which GraphicsGrid or GraphicsColumn does not do > (it creates equal-height rows). So I need to use Grid. But unlike > GraphicsGrid, which uses points in the ImageSize option, Grid uses ems > in the ItemSize option. I have a standard font so I should be able to > map the font em to absolute units like points or mm, if only I can > extract that em length in absolute units. > > <snip> Dear all, While the answer would still be interesting for other reasons, I worked out the solution to my actual problem: a sequence of GraphicsGrid[]s inside a Column[]. I hope this is useful for future Googlers. Regards Luci
[toc] | [prev] | [next] | [standalone]
| From | Armand Tamzarian <mike.honeychurch@gmail.com> |
|---|---|
| Date | 2011-05-09 10:20 +0000 |
| Message-ID | <iq8f5b$5uh$1@smc.vnet.net> |
| In reply to | #2176 |
On May 7, 9:36 pm, Luci Ellis <l...@verbeia.com> wrote: > Dear all > I vaguely remember that there is an undocumented function for > extracting the length of an em in the current font, and expressing it > in printers points, but I can't remember what it was. > > My problem is I need to create a graphics output that is a guaranteed > absolute width in points (or mm). Each row in the grid needs to take > its natural height, which GraphicsGrid or GraphicsColumn does not do > (it creates equal-height rows). So I need to use Grid. But unlike > GraphicsGrid, which uses points in the ImageSize option, Grid uses ems > in the ItemSize option. I have a standard font so I should be able to > map the font em to absolute units like points or mm, if only I can > extract that em length in absolute units. > > Does anyone either remember the name of the undocumented function, or > have another suggestion on how to do this? > > I am trying to write some functions to output various grids of plots, > with titles and footnotes over the whole grid of plots. The formatting > requirements of my employer are very, very precise. I can replicate the > one-panel graphs pixel-for-pixel, but not when there is a grid of plots > under the same title. > > Thanks in advance, > Luci I've often wondered why *Size units are not uniform for all *Size. Does anyone know why Wolfram Research use printers pionts in some cases and other units in others? Mike
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web