POV-Ray : Newsgroups : povray.general : Wanted: dealing with font style 'bold' and 'italics' Server Time
31 Jul 2024 06:19:41 EDT (-0400)
  Wanted: dealing with font style 'bold' and 'italics' (Message 8 to 17 of 17)  
<<< Previous 7 Messages Goto Initial 10 Messages
From: Leef me
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 7 Dec 2007 16:10:00
Message: <web.4759b63117d569dd2a7b15450@news.povray.org>
"pan" <pan### [at] syixcom> wrote:
> "Leef_me" <nomail@nomail> wrote in message

> >
> > I understand that there are some fonts with separate files like
> > these.
> > The particular font I wanted to use, doesn't happen to do it this
> > way.
> >
> > Leef_me
> >
> >
> What's the font?
> Some of us have collections of typefaces ...

It has Curlz in the name, but it's a uSoft font packaged with some uSoft
products. Based on that thought, it's surely copyright and trading is likely a
no-no. I appreciate the thought, but Tim Attwood's code will suffice or I'll
make do with 'normal' or using a generated picture.

Leef_me


Post a reply to this message

From: Alain
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 7 Dec 2007 16:22:03
Message: <4759b97b$1@news.povray.org>
Leef_me nous apporta ses lumieres en ce 2007/12/07 01:43:
> Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
>> Bold and italics are on different .ttf files. For Arial, I have these files:
>>
>> arial.ttf //normal
>> arialbd.ttf //bold
>> ariali.ttf //italics
>> arialbi.ttf //bold and italics
> 
> Thanks Nicolas,
> 
> I tried to give all the details, I missed reporting that.
> 
> I understand that there are some fonts with separate files like these.
> The particular font I wanted to use, doesn't happen to do it this way.
> 
> Leef_me
> 
> 
> 
> 
The shear matrix is the way for italic. It's similar to the way used by word 
processors and others to display italic when there is no italic version available.
Bold is harder to do. The characters remain about the same size, but the lines 
are thicker. A way would be to scale up horizontaly and reduce the spacing 
between the characters. It will be more like "whide condenced"

-- 
Alain
-------------------------------------------------
You *know* you've been raytracing far too long when you look at a heap of dirt 
and go "wow, that looks really realistic..."


Post a reply to this message

From: John VanSickle
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 7 Dec 2007 18:25:08
Message: <4759d654$1@news.povray.org>
Leef_me wrote:
> Can someone suggest how to deal with font 'bold' and 'italics' ?
> 
> I have started working with fonts and haven't found an answer from the docs or
> searching the newsgroups.

Can't help you with bold, as that involves changing the basic shape of 
the text.

Doing italic text object in POV-Ray is easy:

text { ttf "arial.ttf","Some text",.1,0
   matrix <1,0,0, .1,1,0, 0,0,1, 0,0,0>
}

The matrix line italicizes the font.  The .1 setting slopes the text 
over to a 10% grade.  You can go to .2 if you want very obvious italics, 
but that's enough.

There is no way of telling POV-Ray that you want to apply whatever text 
style you're used to using from your word processor; you have to 
understand what actually happens to the shapes of the letters, and then 
apply that change by altering the model accordingly.

Regards,
John


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 7 Dec 2007 18:56:35
Message: <4759ddb3$1@news.povray.org>
Alain escribió:
> Bold is harder to do. The characters remain about the same size, but the 
> lines are thicker. A way would be to scale up horizontaly and reduce the 
> spacing between the characters. It will be more like "whide condenced"

How about multiple text objects, each moved horizontally by a small amount?


Post a reply to this message

From: Leef me
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 7 Dec 2007 20:10:00
Message: <web.4759ee2917d569dd2a7b15450@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> Alain escribió:
> > Bold is harder to do. The characters remain about the same size, but the
> > lines are thicker. A way would be to scale up horizontaly and reduce the
> > spacing between the characters. It will be more like "whide condenced"

That is what Tim Attwood's example code does.

>
> How about multiple text objects, each moved horizontally by a small amount?

But then you get into the how many is enough?

There was an old joke asking "how many electricians does it require to change a
lightbulb?" The joke was recycled into many different scenarios and
trades-people.

The real answer would seem to be a question: "how many are you willing to pay
for?"

p.s. I apologize to the many electricians and trades-people who have endured
this joke over the years.

Leef_me


Post a reply to this message

From: pan
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 8 Dec 2007 00:20:18
Message: <475a2992@news.povray.org>
"Leef_me" <nomail@nomail> wrote in message 
news:web.4759b63117d569dd2a7b15450@news.povray.org...
> "pan" <pan### [at] syixcom> wrote:
>> "Leef_me" <nomail@nomail> wrote in message
>
>> >
>> > I understand that there are some fonts with separate files 
>> > like
>> > these.
>> > The particular font I wanted to use, doesn't happen to do it 
>> > this
>> > way.
>> >
>> > Leef_me
>> >
>> >
>> What's the font?
>> Some of us have collections of typefaces ...
>
> It has Curlz in the name, but it's a uSoft font packaged with 
> some uSoft
> products. Based on that thought, it's surely copyright and 
> trading is likely a
> no-no. I appreciate the thought, but Tim Attwood's code will 
> suffice or I'll
> make do with 'normal' or using a generated picture.
>
> Leef_me
>
>

Copyright isn't the point. Typefaces & fonts have been around a 
long time
and there are many, many instances of parallel/duplicate 
development.
So much so that an the identical appearance can (and does) have a
number of names. Some of us have been around long enough that by
sheer repetitiveness a font by one name can be visually recognized
as an analogue of another name.

That's o.k. though - it is tedious to inspect many to find one that 
has
the same kerning, form, etc. etc.


Post a reply to this message

From: Warp
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 8 Dec 2007 00:26:38
Message: <475a2b0e@news.povray.org>
John VanSickle <evi### [at] hotmailcom> wrote:
> Doing italic text object in POV-Ray is easy:

> text { ttf "arial.ttf","Some text",.1,0
>    matrix <1,0,0, .1,1,0, 0,0,1, 0,0,0>
> }

  Technically speaking that's a slanted/oblique font, not an italic
(ie. cursive) font.
  (Although admittedly the difference between these two things can be
quite subtle to the layman.)

-- 
                                                          - Warp


Post a reply to this message

From: Jellby
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 8 Dec 2007 04:40:08
Message: <373q25-1ad.ln1@badulaque.unex.es>
Among other things, Warp saw fit to write:

>   Technically speaking that's a slanted/oblique font, not an italic
> (ie. cursive) font.
>   (Although admittedly the difference between these two things can be
> quite subtle to the layman.)

But it's usually obvious for some letters, such as "a" and "f". Italic fonts
have a certain hand-written look.

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

From: Warp
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 8 Dec 2007 05:35:34
Message: <475a7376@news.povray.org>
Jellby <me### [at] privacynet> wrote:
> But it's usually obvious for some letters, such as "a" and "f". Italic fonts
> have a certain hand-written look.

  Depending on the font there can indeed be visible differences between
slanted and cursive versions of the same font, especially when put side
by side. While computers will often emulate a cursive font by slanting
it (when there's no cursive version of the font available), a cursive
version of a given font should technically be its own separate font with
its own design (which is not just a slanted version of the original font).

-- 
                                                          - Warp


Post a reply to this message

From: Leef me
Subject: Re: Wanted: dealing with font style 'bold' and 'italics'
Date: 8 Dec 2007 18:10:01
Message: <web.475b240017d569dd892adb1d0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Jellby <me### [at] privacynet> wrote:
> > But it's usually obvious for some letters, such as "a" and "f". Italic fonts
> > have a certain hand-written look.
>
>   Depending on the font there can indeed be visible differences between
> slanted and cursive versions of the same font, especially when put side
> by side. While computers will often emulate a cursive font by slanting
> it (when there's no cursive version of the font available), a cursive
> version of a given font should technically be its own separate font with
> its own design (which is not just a slanted version of the original font).
>
> --
>                                                           - Warp

When I said thanks to Tim for his example, I expected to thread to die.
I'm glad that wasn't the case this time. I'm still learning things from the rest
of the thread.   Unfortunately, for expediancy, I am planning to use
my fall-back plan of an image of the text.

Leef_me

-------------------
Lt. Cmdr. Data [polite tone] Could you please continue your petty bickering? I
find it intriguing.


Post a reply to this message

<<< Previous 7 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.