Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

does a 'hollow' font exist?

1,507 views
Skip to first unread message

Dushan Mitrovich

unread,
Feb 3, 2004, 2:57:58 PM2/3/04
to
Does a 'hollow' font exist, in which the character outline is a black
line and the interior is white. The characters would have to be pretty
fat (bold weight) to have the interior space visible.

I'm looking for this to represent dyadics/tensors. Right now the combi-
nation '\boldsymbol{\mathsf{P}}' is working fairly well, but I think the
outline character would be even more distinct from a bold vector char.

If such a font does exist, where to find it? Thanks.

- Dushan Mitrovich

Tristan Miller

unread,
Feb 3, 2004, 3:26:19 PM2/3/04
to
Greetings.

Would the blackboard symbols be appropriate for your purposes? They're
certainly hollow-ish, though maybe not exactly what you had in mind.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=numbersets

Regards,
Tristan

--
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you

Walter Schmidt

unread,
Feb 3, 2004, 3:42:52 PM2/3/04
to
Dushan Mitrovich schrieb:

>
> Does a 'hollow' font exist, in which the character outline is a black
> line and the interior is white. The characters would have to be pretty
> fat (bold weight) to have the interior space visible.

You are using VTeX, so I think you can use a font such
as Helevtica-Bold and turn it into a "hollow" (outlined)
font on-the-fly. I've never used this trick so far, so I
need some time to find out how it is done. Please, be
patient.

Walter

Walter Schmidt

unread,
Feb 3, 2004, 4:14:47 PM2/3/04
to
Dushan Mitrovich schrieb:

>
> Does a 'hollow' font exist, in which the character outline is a black
> line and the interior is white. The characters would have to be pretty
> fat (bold weight) to have the interior space visible.
> I'm looking for this to represent dyadics/tensors.

Put the folowing lines into the document preamble; notice
that this work ONLY with VTeX !!!!!

%%%%%%%%%%%%%%%%%%% snip %%%%%%%%%%%%%%%%%%%%

\begingroup
\catcode32=10 %
\aliasfont tenhl = phvb7t outline=2
\endgroup
\DeclareFontFamily{U}{hollow}{}
\DeclareFontShape{U}{hollow}{m}{n}{<->tenhl}{}
\DeclareMathAlphabet{\mathhl}{U}{hollow}{m}{n}

%%%%%%%%%%%%%%%%%%% snap %%%%%%%%%%%%%%%%%%%%%

Thus, a new math alphabet \mathhl is defined, which prints
"hollow" letters in math mode. Example:

$\mathhl{T}$ is a tensor

If you consider the outline of the characters as too thin,
increase the value after the keyword "outline" to 3 or 4.

The above definition uses the bold Helvetica font. To use,
say, CM-Sansserif Bold instead, replace "phvb7t" with
"cmssbx10"

Is this what you were looking for?

Walter

Johan Ovlinger

unread,
Feb 3, 2004, 4:19:46 PM2/3/04
to
1) I believe the outline/fill bit is part of the font; if true,
you'll need to find an outline font. Which is kind exactly what
you asked. Helvetica Neue Outline is $22ish. Ask at
alt.binaries.fonts; they may have shareware fonts.

2) If you need just one letter at a time, can't you do something
like (completely untested)

\newcommand\outlinechar[1]{%
\makebox[l]{0pt}{\color{black}#1}%
{\color{white}#1}
}

3) You can definately do something like this in raw postscript:

%\ifcameraready
%\else
\typeout{Warning: Debugging version}
\special{!userdict begin /bop-hook{
gsave
290 200 translate
65 rotate
/Times-Roman findfont
116 scalefont setfont
% >> 0 0 moveto 0.85 setgray (diff) show
0 1 3 { % -- i (0 <= i <= 3 by step 1)
dup % -- i i
0.025 mul 0.825 add % -- i 0.825+0.025*i
exch 0 exch % -- 0.825+0.025*i 0 i
moveto % -- 0.825+0.025*i
setgray (\debugstr) show % --
} for
% <<
grestore}def
end}
%\fi

Prints out value of \debugstr in various shades of grey.
Just reserve a box for it.

4) Print the character twice:

\makebox[1pt][l]{N}N

Cameron Kerr

unread,
Feb 3, 2004, 9:36:20 PM2/3/04
to
Dushan Mitrovich <an...@spamming.org> wrote:
> Does a 'hollow' font exist, in which the character outline is a black
> line and the interior is white. The characters would have to be pretty
> fat (bold weight) to have the interior space visible.

You should be able to do this with NFSS. I'm not sure if this is right,
but I think (according to the Companion), that you want something like
this. ol is the Outline shape.

\fontshape{ol}\selectfont This should be in outline font.

YMMV depending an the base font you are using. The default font will not
do, so you'll need to specify something different with \fontfamily{}

See Page 190 of the LaTeX Companion for more information.

PS. Does anyone know how to make a full catalogue of every family, with
every supported shape and weight? I've looked at nfssfont.tex, but it
doesn't seem to allow me to select a different shape, and I don't know
what font families are available to me.

--
Cameron Kerr
camero...@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!

Dushan Mitrovich

unread,
Feb 4, 2004, 1:02:45 PM2/4/04
to
Tristan Miller <psych...@nothingisreal.com> wrote:
` Would the blackboard symbols be appropriate for your purposes? They're

` certainly hollow-ish, though maybe not exactly what you had in mind.
` http://www.tex.ac.uk/cgi-bin/texfaq2html?label=numbersets

Thanks for the suggestion. Haven't tried this yet, but will look into it
after I get my paper done. Meanwhile, Walter Schmidt's instructions are
doing the job nicely.

- Dushan

Dushan Mitrovich

unread,
Feb 4, 2004, 1:06:51 PM2/4/04
to
Johan Ovlinger <joh...@ccs.SPAMneu.edu> wrote:
` 1) I believe the outline/fill bit is part of the font; if true,

Johan,

This will take some experimenting, which will have to wait for some free
time. Your #(2) is probably the most applicable, as I only need to define
two or three such hollow symbols. Thanks for the suggestions - I'll try
them when I get the chance.

- Dushan

Dushan Mitrovich

unread,
Feb 4, 2004, 1:12:19 PM2/4/04
to
Walter Schmidt <wsc...@gmx.net> wrote:
` Put the folowing lines into the document preamble; notice

` that this work ONLY with VTeX !!!!!
`
` %%%%%%%%%%%%%%%%%%% snip %%%%%%%%%%%%%%%%%%%%
`
` \begingroup
` \catcode32=10 %
` \aliasfont tenhl = phvb7t outline=2
` \endgroup
` \DeclareFontFamily{U}{hollow}{}
` \DeclareFontShape{U}{hollow}{m}{n}{<->tenhl}{}
` \DeclareMathAlphabet{\mathhl}{U}{hollow}{m}{n}
`
` %%%%%%%%%%%%%%%%%%% snap %%%%%%%%%%%%%%%%%%%%%
`
` Thus, a new math alphabet \mathhl is defined, which prints
` "hollow" letters in math mode. Example:
`
` $\mathhl{T}$ is a tensor
`
` If you consider the outline of the characters as too thin,
` increase the value after the keyword "outline" to 3 or 4.
`
` The above definition uses the bold Helvetica font. To use,
` say, CM-Sansserif Bold instead, replace "phvb7t" with
` "cmssbx10"
`
` Is this what you were looking for?

Walter, Yes! This is terrific! Thank you much, it works like a charm.
With the now-obvious symbol contrast, it already let me catch three
instances where I had mistakenly used '\dyad' when it should have been
'\vctr'.

- Dushan

"Žarko F. Čučej"

unread,
Feb 4, 2004, 2:15:51 PM2/4/04
to Walter Schmidt
Walter Schmidt wrote:

> Dushan Mitrovich schrieb:
>
>>Does a 'hollow' font exist, in which the character outline is a black
>>line and the interior is white. The characters would have to be pretty
>>fat (bold weight) to have the interior space visible.
>>I'm looking for this to represent dyadics/tensors.
>
>
> Put the folowing lines into the document preamble; notice
> that this work ONLY with VTeX !!!!!

^^^^^^^^^^^^^^^^^^^^^^^^
what a pity!
Is there a simple way to do the same for MIkTeX?

> %%%%%%%%%%%%%%%%%%% snip %%%%%%%%%%%%%%%%%%%%
>
> \begingroup
> \catcode32=10 %
> \aliasfont tenhl = phvb7t outline=2
> \endgroup
> \DeclareFontFamily{U}{hollow}{}
> \DeclareFontShape{U}{hollow}{m}{n}{<->tenhl}{}
> \DeclareMathAlphabet{\mathhl}{U}{hollow}{m}{n}
>

[...]

Regards, Zarko

Dan Luecking

unread,
Feb 5, 2004, 11:56:01 AM2/5/04
to
On Wed, 04 Feb 2004 20:15:51 +0100, "Žarko F. Čučej"
<zarko...@uni-mb.si> wrote:

>Walter Schmidt wrote:
>
>> Dushan Mitrovich schrieb:
>>
>>>Does a 'hollow' font exist, in which the character outline is a black
>>>line and the interior is white. The characters would have to be pretty
>>>fat (bold weight) to have the interior space visible.
>>>I'm looking for this to represent dyadics/tensors.
>>
>>
>> Put the folowing lines into the document preamble; notice
>> that this work ONLY with VTeX !!!!!
> ^^^^^^^^^^^^^^^^^^^^^^^^
> what a pity!
>Is there a simple way to do the same for MIkTeX?

Isn't there a LaTeX package that writes some appropriate ps code
to display a font as outline (redefining show perhaps)? I seem
to remember such a thing, but that it had some unsuspected name.
A search of the Catalogue got me nothing.


Dan

--
Dan Luecking Department of Mathematical Sciences
University of Arkansas Fayetteville, Arkansas 72701
luecking at uark dot edu

Etienne Riga

unread,
Feb 5, 2004, 1:12:40 PM2/5/04
to
Dan Luecking wrote:
>
> Isn't there a LaTeX package that writes some appropriate ps
code
> to display a font as outline (redefining show perhaps)? I seem
> to remember such a thing, but that it had some unsuspected
name.
> A search of the Catalogue got me nothing.
>

macro \pstextpath from file pst-char.tex
PSTricks

--
Étienne Riga

Robin Fairbairns

unread,
Feb 5, 2004, 3:58:31 PM2/5/04
to

no, that's for drawing text along a general path. \pscharpath is the
baby.

\pscharpath[linewidth=0.4]{\fontfamily{phv}\selectfont MOUSE}

seems ok (though not terribly wonderful on-screen). don't know
whether the linewidth def is actually necessary.

it should be possible to set outlines up at font selection time with
one of those strings in psfonts.map -- i doodled with this earlier,
but my postscript coding is too rusty.
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge

Maurizio Loreti

unread,
Feb 6, 2004, 1:53:45 AM2/6/04
to
Dan Luecking <Look-...@uark.edu> writes:

> Isn't there a LaTeX package that writes some appropriate ps code
> to display a font as outline (redefining show perhaps)?

Not exectly the same, but the so-called "Blue Book" (aka "PostScript
Language Tutorial and Cookbook", by Adobe Systems Inc.) contains
(program 16, at page 199) a PostScript snippet that generates an
outline font starting from a generic "filled" font (the snippet uses
Helvetica-Bold); to the resulting font a new name is given (in the
snippet, Helvetica-Outline).

If you are interested, the "Blue Book", edited in 1985, is now freely
available --- e.g. through the following URL:

http://www-cdf.fnal.gov/offline/PostScript/BLUEBOOK.PDF

--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybe...@cq.vasa.vg

Dushan Mitrovich

unread,
Feb 6, 2004, 5:25:17 PM2/6/04
to
Maurizio Loreti <m...@foobar.it> wrote:
` Not exectly the same, but the so-called "Blue Book" (aka "PostScript

` Language Tutorial and Cookbook", by Adobe Systems Inc.) contains
` (program 16, at page 199) a PostScript snippet that generates an
` outline font starting from a generic "filled" font (the snippet uses
` Helvetica-Bold); to the resulting font a new name is given (in the
` snippet, Helvetica-Outline).
`
` If you are interested, the "Blue Book", edited in 1985, is now freely
` available --- e.g. through the following URL:
`
` http://www-cdf.fnal.gov/offline/PostScript/BLUEBOOK.PDF

A good reference to have. Thank you.

- Dushan

Maurizio Loreti

unread,
Feb 7, 2004, 4:51:38 AM2/7/04
to
an...@spamming.org (Dushan Mitrovich) writes:

But, after a short meditation, not so easy to use. If you want to
print from a PostScript program, yes, but not if you need a new font
for LaTeX. Here is what I would do:

1) start from a good quality font, e.g. the URW helvetica clone that
comes with Ghostscript (Nimbus);
2) load the font inside the public domain font editor "pfaedit" (at
pfaedit.sourceforge.net); pfaedit has a menu (element -> effects ->
outline) that leaves the 'outline' of every selected character
(also more than one selected character);
3) change the name of the font, and the unique id, and save the font
under a different name (maybe NimbusOutline);
4) if needed, repeat for the italic, bold and bold-italic variants; or
do that for the bold variant only;
5) use the TeX tool "fontinst" to make the 'hollow' font available for
LaTeX.

Jim Hefferon

unread,
Feb 7, 2004, 9:39:07 AM2/7/04
to
an...@spamming.org (Dushan Mitrovich) wrote

> Does a 'hollow' font exist, in which the character outline is a black
> line and the interior is white. The characters would have to be pretty
> fat (bold weight) to have the interior space visible.

Is this what you want?
http://www.radicaleye.com/dvipsman/dvips.html#IDX568

Jim Hefferon

Dushan Mitrovich

unread,
Feb 8, 2004, 1:59:36 AM2/8/04
to
jhef...@smcvt.edu (Jim Hefferon) wrote:
`an...@spamming.org (Dushan Mitrovich) wrote

Thanks for the URL, but the answer at the moment is, I don't know. I went
to that site and saved the page contents, but haven't yet had time to dig
into them. But there are some doubts about my being able to use that,
because VTeX/2 skips the DVI step, producing a PDF (or PS) file directly
from TeX. We'll see.

-Dushan

Dushan Mitrovich

unread,
Feb 8, 2004, 1:51:39 AM2/8/04
to
Maurizio Loreti <m...@foobar.it> wrote:

Hmm, thanks for these instructions. I've long looked for a non-profes-
sional font editor for use in OS/2, and not found one. I'll look at
pfaedit carefully and try your steps.

- Dushan

Patrick TJ McPhee

unread,
Feb 8, 2004, 12:25:08 PM2/8/04
to
In article <7xdJA5aA...@abq.com>,
Dushan Mitrovich <an...@spamming.org> wrote:

% Hmm, thanks for these instructions. I've long looked for a non-profes-
% sional font editor for use in OS/2, and not found one. I'll look at
% pfaedit carefully and try your steps.

For this purpose, pfaedit is overkill. If you want to edit the font,
load it in a binary editor, search for /PaintType and change it from

/PaintType 0 def

to

/PaintType 2 def


fontlab used to have an OS/2 version. I don't know if it's still available.
It's probably not hard to install pfaedit provided you have X installed.
--

Patrick TJ McPhee
East York Canada
pt...@interlog.com

Patrick TJ McPhee

unread,
Feb 9, 2004, 1:20:05 PM2/9/04
to
In article <c05rdj$qan$1...@news.eusc.inter.net>,
Patrick TJ McPhee <pt...@interlog.com> wrote:
% In article <7xdJA5aA...@abq.com>,

% Dushan Mitrovich <an...@spamming.org> wrote:
%
% % Hmm, thanks for these instructions. I've long looked for a non-profes-
% % sional font editor for use in OS/2, and not found one. I'll look at
% % pfaedit carefully and try your steps.
%
% For this purpose, pfaedit is overkill. If you want to edit the font,
% load it in a binary editor, search for /PaintType and change it from
%
% /PaintType 0 def
%
% to
%
% /PaintType 2 def

It just occurred to me (really) that you can do this with postscript, too.
It's similar to re-encoding, but instead of setting the encoding vector,
you define /PaintType in the font dictionary:

/Times-Roman findfont % load times roman
dup length dict copy % make a copy of it
dup begin % set the current dict to that copy
/PaintType 2 def % define paint type for the copy
end % restore the previous dict
/Times-Open exch definefont % define it as /Times-Open
pop % clear away a copy left behind by definefont

Now it can be accessed as normal

/Times-Open findfont 10 scalefont setfont 72 720 moveto (Howdy) show

With apologies for my self-agrandisment.

Maurizio Loreti

unread,
Feb 9, 2004, 1:24:40 PM2/9/04
to
pt...@interlog.com (Patrick TJ McPhee) writes:

> In article <c05rdj$qan$1...@news.eusc.inter.net>,
> Patrick TJ McPhee <pt...@interlog.com> wrote:
> % In article <7xdJA5aA...@abq.com>,
> % Dushan Mitrovich <an...@spamming.org> wrote:
> %
> % % Hmm, thanks for these instructions. I've long looked for a non-profes-
> % % sional font editor for use in OS/2, and not found one. I'll look at
> % % pfaedit carefully and try your steps.
> %
> % For this purpose, pfaedit is overkill. If you want to edit the font,
> % load it in a binary editor, search for /PaintType and change it from

Hmmm. With pfaedit you may choose the width of the contour line. Is
that easy, acting in your way?

Robin Fairbairns

unread,
Feb 10, 2004, 8:46:04 AM2/10/04
to
Maurizio Loreti <m...@foobar.it> writes:
>pt...@interlog.com (Patrick TJ McPhee) writes:
>
>> In article <c05rdj$qan$1...@news.eusc.inter.net>,
>> Patrick TJ McPhee <pt...@interlog.com> wrote:
>> % In article <7xdJA5aA...@abq.com>,
>> % Dushan Mitrovich <an...@spamming.org> wrote:
>> %
>> % % Hmm, thanks for these instructions. I've long looked for a non-profes-
>> % % sional font editor for use in OS/2, and not found one. I'll look at
>> % % pfaedit carefully and try your steps.
>> %
>> % For this purpose, pfaedit is overkill. If you want to edit the font,
>> % load it in a binary editor, search for /PaintType and change it from
>
>Hmmm. With pfaedit you may choose the width of the contour line. Is
>that easy, acting in your way?

StrokeWidth is the stroking width in case that /PaintType=2

units are "character coordinate system" ( scalefont value/1000, i
think ). the book doesn't seem to say what the default value is.

Patrick TJ McPhee

unread,
Feb 10, 2004, 11:50:30 AM2/10/04
to
In article <rmr7x4d...@mlinux.pd.infn.it>,
Maurizio Loreti <m...@foobar.it> wrote:
% pt...@interlog.com (Patrick TJ McPhee) writes:
%
% > In article <c05rdj$qan$1...@news.eusc.inter.net>,
% > Patrick TJ McPhee <pt...@interlog.com> wrote:
% > % In article <7xdJA5aA...@abq.com>,

% > % Dushan Mitrovich <an...@spamming.org> wrote:
% > %
% > % % Hmm, thanks for these instructions. I've long looked for a non-profes-
% > % % sional font editor for use in OS/2, and not found one. I'll look at
% > % % pfaedit carefully and try your steps.

% > %
% > % For this purpose, pfaedit is overkill. If you want to edit the font,
% > % load it in a binary editor, search for /PaintType and change it from
%
% Hmmm. With pfaedit you may choose the width of the contour line. Is
% that easy, acting in your way?

With pfaedit, you run the risk of the outlines being modified, hints dropped
and so on. I'm not saying that any of this will happen, but with any graphics
editor, there's likely to be some interpretation of the input unless it's
in the native format for the editor. In any case, pfaedit is not installed
on the majority of machines (whereas everyone has a binary editor :-).

0 new messages