Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

If you think the system is working, ask someone who's waiting for a prompt.


computers / comp.text.tex / Re: Display and 3D characters: Prototype font and MetaPost figures

SubjectAuthor
* Display and 3D characters: Prototype font and MetaPost figuresLaurence Finston
`* Re: Display and 3D characters: Prototype font and MetaPost figuresLaurence Finston
 `* Re: Display and 3D characters: Prototype font and MetaPost figuresjfh
  `* Re: Display and 3D characters: Prototype font and MetaPost figuresLaurence Finston
   `- Re: Display and 3D characters: Prototype font and MetaPost figuresLaurence Finston

1
Subject: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence Finston
Newsgroups: comp.text.tex
Date: Thu, 5 May 2022 13:25 UTC
X-Received: by 2002:a05:620a:414d:b0:6a0:2035:f097 with SMTP id k13-20020a05620a414d00b006a02035f097mr4710368qko.458.1651757103626;
Thu, 05 May 2022 06:25:03 -0700 (PDT)
X-Received: by 2002:a05:6808:1246:b0:2c9:efa5:7209 with SMTP id
o6-20020a056808124600b002c9efa57209mr2447682oiv.62.1651757103375; Thu, 05 May
2022 06:25:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Thu, 5 May 2022 06:25:03 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2003:c7:e72a:4f5f:ebcd:bfe3:9cd3:3b0b;
posting-account=rhvipAoAAADaMX8vFQT5Ku2zCVKARqHG
NNTP-Posting-Host: 2003:c7:e72a:4f5f:ebcd:bfe3:9cd3:3b0b
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bae35666-d41e-4ef7-b502-8045a464a98en@googlegroups.com>
Subject: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence...@gmx.de (Laurence Finston)
Injection-Date: Thu, 05 May 2022 13:25:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 48
View all headers
Hello,

During the past few months I've been working on display fonts and "3D" characters.  I have now put together a prototype font ("Hollow") and some related MetaPost figures and posted them to the GNU 3DLDF website:
https://www.gnu.org/software/3dldf/display_fonts.html

A PDF file with samples:  file:///home/laurence/3DLDF-3.0_web/3dldf/graphics/hollow.pdf

A compressed archive file ("tarball") with the same document in PDF, dvi, and PostScript formats along with the source code, a few of the generated files (not, however, the Encapsulated PostScript files) and a Makefile:
https://www.gnu.org/software/3dldf/SRC_CODE/hollow.tgz

There is a great deal left to do but I thought I would present my results so far here in case anyone might be interested in having a look or even have a use for such a font.

The MF and MP files are generated by GNU 3DLDF, which is a software package for 3D drawing with MetaPost and METAFONT output.  It is available from here:  https://savannah.gnu.org/projects/3dldf/
This is the homepage: https://www.gnu.org/software/3dldf/

3DLDF implements a language similar to the MF language, but with some differences and many additional commands.  It performs the 3D calculations,
projects the resulting image onto a plane using either a parallel projection or the perspective projection, and writes MF and/or MP code to its output files.  Then, MF or MP can be run as usual, fonts and/or EPS files can be included in TeX documents, etc.

The "Hollow" font is an MF font, i.e., not a PostScript one.  I have tested making a PS font and it works, but there are certain restrictions that the MF or MP code must fulfill which makes it impossible to use some of MF's features.  I am therefore currently not working on creating PostScript fonts..

The characters "A" and "g" from Computer Modern Sans Serif Bold Extended 10pt are obtained by  calling MP within 3DLDF via `system' and invoking the `glyph' command.  The data for the paths are then read from an output file that MP writes. 

For the "A", I modified the character by straightening out the rounded parts so that it consists only of straight lines.  The "g", on the other hand, consists only of curves and required a different approach.

Any feedback would be much appreciated.

Laurence Finston


Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence Finston
Newsgroups: comp.text.tex
Date: Thu, 5 May 2022 13:27 UTC
References: 1
X-Received: by 2002:a0c:f482:0:b0:45a:98a0:ddaf with SMTP id i2-20020a0cf482000000b0045a98a0ddafmr13116920qvm.130.1651757220650;
Thu, 05 May 2022 06:27:00 -0700 (PDT)
X-Received: by 2002:a05:6870:1244:b0:ce:c0c9:620 with SMTP id
4-20020a056870124400b000cec0c90620mr2219390oao.114.1651757220396; Thu, 05 May
2022 06:27:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Thu, 5 May 2022 06:27:00 -0700 (PDT)
In-Reply-To: <bae35666-d41e-4ef7-b502-8045a464a98en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:c7:e72a:4f5f:ebcd:bfe3:9cd3:3b0b;
posting-account=rhvipAoAAADaMX8vFQT5Ku2zCVKARqHG
NNTP-Posting-Host: 2003:c7:e72a:4f5f:ebcd:bfe3:9cd3:3b0b
References: <bae35666-d41e-4ef7-b502-8045a464a98en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1a53266d-f887-4b8a-814c-033f1eb10212n@googlegroups.com>
Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence...@gmx.de (Laurence Finston)
Injection-Date: Thu, 05 May 2022 13:27:00 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
View all headers
On Thursday, May 5, 2022 at 3:25:06 PM UTC+2, Laurence Finston wrote:

A PDF file with samples: file:///home/laurence/3DLDF-3.0_web/3dldf/graphics/hollow.pdf

Sorry, that was my local copy.  This is the correct link:  https://www.gnu.org/software/3dldf/graphics/hollow.pdf


Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: jfh
Newsgroups: comp.text.tex
Date: Fri, 6 May 2022 23:37 UTC
References: 1 2
X-Received: by 2002:a05:6214:518c:b0:45a:8430:1737 with SMTP id kl12-20020a056214518c00b0045a84301737mr4996088qvb.4.1651880233938;
Fri, 06 May 2022 16:37:13 -0700 (PDT)
X-Received: by 2002:a05:6808:f89:b0:322:6f53:9a1 with SMTP id
o9-20020a0568080f8900b003226f5309a1mr5883573oiw.96.1651880233686; Fri, 06 May
2022 16:37:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Fri, 6 May 2022 16:37:13 -0700 (PDT)
In-Reply-To: <1a53266d-f887-4b8a-814c-033f1eb10212n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=115.189.129.116; posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 115.189.129.116
References: <bae35666-d41e-4ef7-b502-8045a464a98en@googlegroups.com> <1a53266d-f887-4b8a-814c-033f1eb10212n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <26162c3b-fae6-4e9e-b57e-f1a7757ffd12n@googlegroups.com>
Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: john.har...@vuw.ac.nz (jfh)
Injection-Date: Fri, 06 May 2022 23:37:13 +0000
Content-Type: text/plain; charset="UTF-8"
View all headers
On Friday, May 6, 2022 at 1:27:03 AM UTC+12, Laurence Finston wrote:
On Thursday, May 5, 2022 at 3:25:06 PM UTC+2, Laurence Finston wrote:

A PDF file with samples: file:///home/laurence/3DLDF-3.0_web/3dldf/graphics/hollow.pdf
Sorry, that was my local copy. This is the correct link: https://www.gnu.org/software/3dldf/graphics/hollow.pdf
I saw two problems with most of the g symbols (Figs 204--218 for example): a piece missing from the tag at the top right of g, and an extra piece on the link between the upper and lower loops of g. But is the bug in your code or my pdf reader?


Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence Finston
Newsgroups: comp.text.tex
Date: Sat, 7 May 2022 02:59 UTC
References: 1 2 3
X-Received: by 2002:a05:622a:18a0:b0:2f3:ae98:dab with SMTP id v32-20020a05622a18a000b002f3ae980dabmr5664295qtc.171.1651892398784;
Fri, 06 May 2022 19:59:58 -0700 (PDT)
X-Received: by 2002:aca:ead4:0:b0:2ec:ba66:12df with SMTP id
i203-20020acaead4000000b002ecba6612dfmr6672905oih.194.1651892398533; Fri, 06
May 2022 19:59:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Fri, 6 May 2022 19:59:58 -0700 (PDT)
In-Reply-To: <26162c3b-fae6-4e9e-b57e-f1a7757ffd12n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:c7:e72a:4fcb:3f4f:1e68:e950:5dad;
posting-account=rhvipAoAAADaMX8vFQT5Ku2zCVKARqHG
NNTP-Posting-Host: 2003:c7:e72a:4fcb:3f4f:1e68:e950:5dad
References: <bae35666-d41e-4ef7-b502-8045a464a98en@googlegroups.com>
<1a53266d-f887-4b8a-814c-033f1eb10212n@googlegroups.com> <26162c3b-fae6-4e9e-b57e-f1a7757ffd12n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7469dcea-1b47-46fb-abbc-3dd7bb206244n@googlegroups.com>
Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence...@gmx.de (Laurence Finston)
Injection-Date: Sat, 07 May 2022 02:59:58 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
On Saturday, May 7, 2022 at 1:37:16 AM UTC+2, jfh wrote:
On Friday, May 6, 2022 at 1:27:03 AM UTC+12, Laurence Finston wrote:
On Thursday, May 5, 2022 at 3:25:06 PM UTC+2, Laurence Finston wrote:

A PDF file with samples: file:///home/laurence/3DLDF-3.0_web/3dldf/graphics/hollow.pdf
Sorry, that was my local copy. This is the correct link: https://www.gnu.org/software/3dldf/graphics/hollow.pdf
I saw two problems with most of the g symbols (Figs 204--218 for example): a piece missing from the tag at the top right of g, and an extra piece on the link between the upper and lower loops of g. But is the bug in your code or my pdf reader?

Neither.  You're quite right, there is a problem in both places.  I will have to take a different approach for those sections.  The way I did it, I ended up with "pimples" that I tried to cover up with an `undrawdot'  command using a `pensquare'.  The result was okay for the unrotated view projected onto the x-y plane but got progressively worse as the perspective got more extreme.  In the last ones, you can see part of the outline of the square.

I got the inside paths by taking subpaths of the original, outer paths, then scaling and shifting them.  For these two places that didn't well so I added new points and tried to make new paths --- a single one at the connecting wedge between the upper and lower bowls and a second path that partially covers the first one at the serif at the top.

I think a better approach for those places would be to take tangents from the original paths at various points, find the perpendiculars, and make the inside paths by using points on the perpendiculars.  For this, I have to implement `directiontime' in 3dldf, which is what I'm doing now.

Of course, there are other refinements that could be done.  I wanted to get the samples out where people could see them even though this project is still very much a work in progress and there are still some rough spots.

Thanks for your feedback.

Laurence


Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence Finston
Newsgroups: comp.text.tex
Date: Sat, 7 May 2022 03:29 UTC
References: 1 2 3 4
X-Received: by 2002:a05:620a:258e:b0:680:f33c:dbcd with SMTP id x14-20020a05620a258e00b00680f33cdbcdmr4836075qko.542.1651894187821;
Fri, 06 May 2022 20:29:47 -0700 (PDT)
X-Received: by 2002:a05:6870:1244:b0:ce:c0c9:620 with SMTP id
4-20020a056870124400b000cec0c90620mr5814714oao.114.1651894187628; Fri, 06 May
2022 20:29:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.text.tex
Date: Fri, 6 May 2022 20:29:47 -0700 (PDT)
In-Reply-To: <7469dcea-1b47-46fb-abbc-3dd7bb206244n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:c7:e72a:4fcb:3f4f:1e68:e950:5dad;
posting-account=rhvipAoAAADaMX8vFQT5Ku2zCVKARqHG
NNTP-Posting-Host: 2003:c7:e72a:4fcb:3f4f:1e68:e950:5dad
References: <bae35666-d41e-4ef7-b502-8045a464a98en@googlegroups.com>
<1a53266d-f887-4b8a-814c-033f1eb10212n@googlegroups.com> <26162c3b-fae6-4e9e-b57e-f1a7757ffd12n@googlegroups.com>
<7469dcea-1b47-46fb-abbc-3dd7bb206244n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4ff3f568-4cb0-4a8e-a95a-159ac0a3ac77n@googlegroups.com>
Subject: Re: Display and 3D characters: Prototype font and MetaPost figures
From: Laurence...@gmx.de (Laurence Finston)
Injection-Date: Sat, 07 May 2022 03:29:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
On Saturday, May 7, 2022 at 5:00:01 AM UTC+2, Laurence Finston wrote:
On Saturday, May 7, 2022 at 1:37:16 AM UTC+2, jfh wrote:
On Friday, May 6, 2022 at 1:27:03 AM UTC+12, Laurence Finston wrote:
On Thursday, May 5, 2022 at 3:25:06 PM UTC+2, Laurence Finston wrote:

A PDF file with samples: file:///home/laurence/3DLDF-3.0_web/3dldf/graphics/hollow.pdf
Sorry, that was my local copy. This is the correct link: https://www.gnu.org/software/3dldf/graphics/hollow.pdf
I saw two problems with most of the g symbols (Figs 204--218 for example): a piece missing from the tag at the top right of g, and an extra piece on the link between the upper and lower loops of g. But is the bug in your code or my pdf reader?
Neither. You're quite right, there is a problem in both places. I will have to take a different approach for those sections. The way I did it, I ended up with "pimples" that I tried to cover up with an `undrawdot' command using a `pensquare'.

Sorry, in the wedge, it's a black dot (`drawdot') that I used to try to cover up a gap and in the serif it's a white dot (`undrawdot') that I used to try to cover up a "pimple".  In addition, I needed to find extra points for almost all of the inner paths, it just worked better in the other places.


1
rocksolid light 0.7.2
clearneti2ptor