Configure Ghostscript to work with "MT Extra" font - ghostscript

I'm using MathType to write mathematical expressions, which uses "MT Extra" font to do some extra symbols. MathType saves the equation in a .eps format, which I want to add to a Scribus document as an image.
Exporting to .pdf with "embed .eps files" option doesn't show the extra symbols written with the MT Extra font. Since Scribus works with Ghostscript, I believe I have to configure ghostscript to use MT Extra font. Am I right? How can I do that?
ThankYou for your time.
Thank you for your answer, #KenS. I'm using Windows. The font is embed, but I really can't understand (reading the ghostscript documentation) how to use the -I switch on ghostscript command line to include the font path. When I use GSView I can configure it in "Advanced configure" (using -sFONTPATH=c:\windows\fonts), and the .eps looks ok, but it doesn't change the behaviour of ghostscript when I insert the .eps into Scribus (and ghostscript is configured to be the ps interpreter). I don't know how to tell directly to ghostscript to include the fontpath. I'm sorry to ask you again, #KenS, and thank you again for your time.

If the font is embedded in the EPS file, then you don't need to do anything. If they are not then you should get a warning from Ghostscript that a font can't be found and a substitute is being used. If you get that warning then you need to add the font, otherwise you don't. Its poor practice not to embed fconts though.
Adding fonts to Ghostscript is documented in ghostpdl/gs/doc/Fonts.htm See Section 7 in particular.
Assuming you are on Linux you may, or may not, have a ROM file system, depending on how your distribution has chosen to package Ghostscript. If you are using a ROM file system then you will I think need to use the -I switch to include different font paths (again there is documentation on this). If you are not using a ROM file system, or the package already includes fonts on disk then its only necessary to follow the steps described in the documentation.

Related

Need inline_macro example and help about file location

I like to add additional macros to asciidoctor for these types:
path:[some path value]
label:[some label text]
replace:[some value to become replaced by the user]
screen:[something the users sees on screen]
I mainly want to have it rendering some CSS classes while rendering to HTML5. I found several sources on how to write a macro for asciidoctor, but I do not get the point. Where to place or insert the ruby code and classes I write? Here is an example page I found: https://docs.asciidoctor.org/asciidoctor/latest/extensions/inline-macro-processor/
But I found no simple step-by-step information about where to place that?
Can someone tell me:
In which file(s) shall I add my macro code?
How to enable this in general for asciidoctor (so I can simply call it without the need to put it into the comandline call. Or do I have to register the macro in the call all the time?
I installed asciidoctor on Ubuntu 20.04 using apt-get install asciidoctor. Seems it works so far. But I found no files for the predefined macros btn, kbd and menu.
I'm a little lost here... Any help is appreciated.
PS. I know the syntax [.label]#some label text# to place CSS classes, but I want to have it generic and also usable for PDF generation later.
After many different tries and research I finally found it to be easy. Just point asciidoctor to the file you want to include by using the -r comandline parameter:
asciidoctor -r ~/tools/asciidoctor_patch/include_asciidoc.rb
Sadly, the whole asciidoctor documentation names this parameter only "require" and does not even mention this to be used for extensions. I also found no source that mentions the use of -r for including the macros.

How to specify fontmap in ghospcl

In ghostcript, you can use the -FONTMAP option to specify your font file. Is there such a possibility in ghostpcl. This option does not work. I am using ghostpcl 9.52 for Windows x64.
Thank you so much in advance!
There is no fontmap for GhostPCL. The fontmap in Ghostscript is actually written in PostScript, so it can't work with GhostPCL.
For GhostPCL you get the standard fonts (which are not AGPL-compatible), everything else needs to be downloaded as part of the PCL.

How to run GhostScript on AS400 server

We have PDF files on the AS/400 and we need to convert them to PCL for printing . So for this we found Ghostscript for converting PDF file to PCL format , so we're looking for a way to run Ghostscript commands on the AS/400.
Have you please any idea how to do it , if no I am looking for another "free" method to do what we need.
Any help will be appreciated
Ghostscript doesn't accept PCL as input, you need Ghostpdl for that, and more specifically the pcl6 executable.
You can't 'run Ghostscript commands' you can run the executable with the PCL file as an input and suitable command line switches.
In order to do this you will need to compile Ghostscript for your target environment (AS/400 apparently). Ghostscript is written in standard C so you will need a C compiler, the build process is convoluted and requires running a number of executables in order to generate some platform specific files.
Your first task is going to be porting Ghostscript and its build process onto your target platform. I'm not aware of anyone having done this for AS/400 but we'd be interested to hear how you get on.

Detecting/Debugging/Viewing Tiff/BigTiff files which are probably broken

I have received a BigTiff file with scientific data which can't be read properly with ImageJ/Fiji. There seems to be a problem with LibTiff and the StripOffsets tag.
The only options I found are using LibTiff directly (probably bad, if I'm not sure if the issue is caused by LibTiff itself) and ImageJ/Fiji.
Is there a way to have a "higher level" access (i. e. no hex editor) on the provided data?
E. g. some library or tool to "debug" the file and change properties on the fly?
I had the same problem and in my case when the files were too big for the viewers they sent this message of problems with the StripOffsets tag. Now I use my IIPImage viewer, that I builded with libtiff 4.0.3 (with BigTIFF support), to view my file, but I still am in search for a good viewer for huge TIFF files.

Create BOM (bill-of-material) file on Windows

I have to create (or rather modify) software package for MacOSX on Windows. I can do what I need with .pax files, so the only thing left is bill-of-material.
Does anyone know of a library that can do it? Is there BOM file format (Apple-version) available?
TIA
There is now an open source version of mkbom which also compiles for windows at:
http://hogliux.github.io/bomutils/
The windows version still contains some bugs (no special characters in file names and limitations on file path length). However, it should work for simple installers.
The website also has an easy to follow step-by-step tutorial on how to create a Mac OS X installer (however, the tutorial is for linux, see http://hogliux.github.io/bomutils/tutorial.html ).
Well, BOM is not necessary, MacOSX package is a simple directory structure with optional elements, BOM being one of them.

Resources