Giant font? Possible?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Giant font? Possible?

#1 Post by greengeek »

Does anyone know if it is possible to build a TTF (or other) font file that will ALWAYS create characters of a certain size - much larger than other fonts?

What I mean is this - a TTF font file will normally specify fonts of different sizes and types (eg bold, italic etc) but sometimes I find that certain fonts will not allow changes - they always display as non-bold, non-italic, or as capitals only.

I assume that is because the font designer built the TTF that way - in a sort of "cost reduced" format that has limited variants.

So I wondered if a TTF could be made that always shows up as, say, font size 20 or larger??

eg: could be called "TimesNewRomanGiant.TTF" or similar
Last edited by greengeek on Sun 28 Jun 2020, 09:18, edited 1 time in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#2 Post by fredx181 »

Hi greengeek, I think you better ask about this in the 'Programming' section, I suspect guys like vovchik or mochimoppel know how (if it is possible).

Fred

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: Giant font? Possible?

#3 Post by MochiMoppel »

greengeek wrote:Does anyone know if it is possible to build a TTF (or other) font file that will ALWAYS create characters of a certain size - much larger than other fonts?
A TTF font has no defined size. It's scalable by definition, so you can have it in any size you want. Some fonts use fine details not clearly visible when you set the size too low, but again that's not a question of font design but rather a question of choosing the size that's most comfortable for you.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

Re: Giant font? Possible?

#4 Post by greengeek »

MochiMoppel wrote:A TTF font has no defined size. It's scalable by definition, so you can have it in any size you want.
Thanks for the clarification Mochi.

What prompted my question was the example you offered on your font thread - showing the use of font name specification within gxmessage. I had not seen that before and i will find it useful as I use gxmessage a lot.

However - it seems there is no similar "font size" spec for gxmessage so the impact of using a non-default font is somewhat lost (especially if it is a difficult to read fancy font). I hoped there might have been a way to choose a special font within gxmessage so that it stood out more than the small sized default system font.
Attachments
gxmessage_tinyfont.jpg
(17.02 KiB) Downloaded 60 times

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#5 Post by disciple »

You might be able to run it with a special gtkrc to increase the font.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#6 Post by disciple »

Gxmessage manual page says this - are you trying to do something else?
-fn | -font FONT
Specifies the message font, using GTK2's font specification system. For example,
-font "serif italic 14". (GTK2's font system is not compatible with xmessage. See
the Compatibility section, below, for a workaround.)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#7 Post by greengeek »

disciple wrote:Gxmessage manual page says this - are you trying to do something else?
-fn | -font FONT
Specifies the message font, using GTK2's font specification system. For example,
-font "serif italic 14".
Brilliant! Thanks!
I had displayed the --help info for gxmessage but did not spot that little gem.
cheers!

EDIT - i had thought that the "-fn" parameter indicated "font name" and I had no idea it was possible to include the size spec along with the name too. Very handy.
Attachments
gxmessage_bigfont.jpg
(14.83 KiB) Downloaded 47 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#8 Post by greengeek »

Heeheehee, i dont need yad or yafsplash any more now that i can instruct the user using big fonts in gxmessage! This will be handy.
Attachments
SuperBigFont.jpg
(51.39 KiB) Downloaded 29 times

Post Reply