Re: Epstopdf and Lucida fonts in labels
"Laurence Finston" <[email protected]> Wed, 20 Apr 2005 22:16:41 +0200
| Newsgroups | gmane.comp.tex.metafont |
|---|---|
| Message-ID | <[email protected]> |
> I don't claim to really understand what you are doing, but would > it perhaps be possible to call 'dvips -E' instead of manually > calculating the needed cropping and using mogrify? I don't know, and I don't have `dvips' on this machine, so I can't check. If it works, I'd be happy to use it rather than calling an additional program. I've had the problem with unwanted rotation before. In the past, I was able to solve it by adding a label, hence the `origin' label in my image. This time it didn't work, though. I hope the `-E' option will solve this problem, too. If it, or some other option or combination of options to `dvips', doesn't solve the problem, I think the best solution would be to use `ghostscript'. Unfortunately, I don't know how to, and I know almost nothing about the PostScript language. But since my solution seems to work, and doesn't require me to install any new packages or spend hours reading documentation, I'll stick with it. Any suggestions for refinements would be welcome, of course. It occurred to me that I don't need `\epsfverbose', since the dimensions of the image are simply the size of the box containing it. I'm pretty sure `\dp0' == 0pt, but I should probably account for it anyway. I think it should be straightforward to write the dimensions of the box to a file from TeX using `\write', but I can't check it now (no TeX on this machine, either). I will probably write a little C program to read in the data and call `dvips', etc. Nor do I need to calculate the conversion factor for converting points to pixels twice, and I should probably round the results, since fractional pixels cannot be represented. It would be nice if I could write the values from MetaPost directly, but unless this feature has been added, it's not possible to open and write to files. I could implement this in GNU 3DLDF, but that won't help MetaPost users. Thank you for your suggestion. I'll try to test it tomorrow. Laurence