Fonts in Kitely and Opensim for dynamic textures

Ask questions about creating worlds, using worlds, etc.
User avatar
Min Tigerpaw
Posts: 223
Joined: Sun Mar 24, 2013 3:52 pm
Has thanked: 332 times
Been thanked: 160 times

Fonts in Kitely and Opensim for dynamic textures

Post by Min Tigerpaw »

Request to support more fonts for dynamic textures in Kitely:
One of the nice featurtes of opensim is the option to create textures on the go - including text.
While most of the osSet... comands work nicely in Kitely there is one deficit with regard to fonts:
Setting font with osSetFontName works - but there are nearly no fonts!
Most other grids in opensim - like e.g. osGrid, Metro and Craft support at least a small selection of more fancy fonts.
Kitely currently obviously only some (very boring ones):
FontNames that work are:
Bitstream Vera Serif
Times New Roman
Utopia

Fontnames that work additionally in all tested other opensim grids:
Zapf Chancery
Comic Sans MS
Impact
Andale Mono
Bitstream Vera Sans Mono
Courier
Courier New

Interestingly some of those had worked in KItely previously, when I created my boards. But they stopped working some time back - probably when moving servers.
Ilan, Oren - it should not be a big deal to add some fancy fonts to the options in KItely - at least the ones that work everywhere should also be available in Kitely.
For creating good looking signs, boards, guestbooks etc. this is a must.
I'd even encourage to put more than so far in opensim in oder to allow more kalligraphic design of text in signs etc.
Below I show the results with my font-analyzer - first in other opensim and below in Kitely.
Attachments
Here is how the font-test looks in other opensim (Craft/OsGrid/Metro):
Here is how the font-test looks in other opensim (Craft/OsGrid/Metro):
Here is how the font-test looks in Kitely:
Here is how the font-test looks in Kitely:
These users thanked the author Min Tigerpaw for the post (total 4):
Selby EvansGraham MillsDot MatrixSerene Jewell
User avatar
Ilan Tochner
Posts: 6504
Joined: Sun Dec 23, 2012 8:44 am
Has thanked: 4943 times
Been thanked: 4455 times
Contact:

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Ilan Tochner »

Hi Min,

We switched Linux distribution a while back so it's possible the new one doesn't include the same collection of fonts. We can look into adding more fonts in a future site update (they need to be ones we can legally distribute without a license).
These users thanked the author Ilan Tochner for the post (total 6):
Selby EvansGraham MillsShandon LoringDot MatrixMin TigerpawChris Namaste
User avatar
Min Tigerpaw
Posts: 223
Joined: Sun Mar 24, 2013 3:52 pm
Has thanked: 332 times
Been thanked: 160 times

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Min Tigerpaw »

That would be great, Ilan, if you could include them ...There should be tons of free fonts available .. for Opensim compatibility the ones I mentioned should be included ... especially the first three. But I'd encourage to ad some 10-20 nice fonts to enable design options. :)
These users thanked the author Min Tigerpaw for the post:
Serene Jewell
User avatar
Serene Jewell
Posts: 336
Joined: Thu Dec 27, 2012 6:12 am
Has thanked: 636 times
Been thanked: 397 times

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Serene Jewell »

Putting good design tools in the hands of the users helps make Kitely look good. Strongly encourage this.
These users thanked the author Serene Jewell for the post (total 2):
Min TigerpawChris Namaste
User avatar
Oren Hurvitz
Posts: 361
Joined: Sun Dec 23, 2012 8:42 am
Has thanked: 19 times
Been thanked: 499 times
Contact:

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Oren Hurvitz »

Hi Min,

I'm looking into this issue.

First, could you share the object or script you used to list available fonts? It would help me to check if installing new fonts work.

Second, I noticed that we have more fonts installed than you've listed, but under other names. For example, try these fonts:
  • URW Chancery L
    Century Schoolbook L
    Dingbats
Do they work?
These users thanked the author Oren Hurvitz for the post:
Min Tigerpaw
User avatar
Min Tigerpaw
Posts: 223
Joined: Sun Mar 24, 2013 3:52 pm
Has thanked: 332 times
Been thanked: 160 times

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Min Tigerpaw »

Hi Oren,
thank you for looking into this. The device to check the fonts is a simple prim with a script that creates a dynamic texture with the list of fonts and tries to set the font according to name.
The list lFonts of font-names must be edited inside the script (I was lazy and didn't write an input via chat or NC so far). I added the three you mentioned but the fonts are not recognized.

The script creates a dynamic texture with columns of the fontnames written with the font the name stands for (if the font is active). If the font is not available the name is written in standard font (looks like Arial or similar).

I made the device free to copy and modify and placed it in my Sandbox close to the arriving point. For test just place the fonts to test in thew list and reset the script.
The fonts listed here should work with opensim if installed:
http://www.w3schools.com/cssref/css_websafe_fonts.asp

And here is an example what you could do if you have nice fonts available ...... (however others have faced the similar issue of font availsbility in opensim if you read the comments there):
http://shipbrook.blogspot.de/2009/07/se ... ns_12.html
User avatar
Oren Hurvitz
Posts: 361
Joined: Sun Dec 23, 2012 8:42 am
Has thanked: 19 times
Been thanked: 499 times
Contact:

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Oren Hurvitz »

We have installed more fonts. The following new fonts are now available:

Andale Mono
Arial
Arial Black
Calibri
Cambria
Comic Sans MS
Candara
Consolas
Constantia
Corbel
Courier New
Georgia
Impact
Times New Roman
Webdings

Bookman
Zapf Chancery
URW Gothic L
Palatino
New Century Schoolbook

I have updated the Font Analyzer script to check for these fonts. Here's what it shows now:
fonts-after.jpg
And this is the updated script:

Code: Select all

//fonttest MT

list lFonts = ["Abadi MT","Agency FB","Algerian","Andale Mono","Arial","Arial Rounded MT","Avant-Garde","Baskerville Old Face","Bauhaus 93","Beesknees ITC","Bell MT","Berlin Sans FB","Bernard MT","BernhardMod BT","Bitstream Vera Sans","Bitstream Vera Sans Mono","Bitstream Vera Serif","Blackadder ITC","Blackletter 686 BT","Book Antiqua","Bookman Old Style","Bradley Hand ITC","Braggadocio","Britannic","Broadway","Brush738 BT","Brush Script MT","Brushwood Italic","Californian FB","Calisto MT","CaslonOpenface BT","Castellar","Centaur","Century Gothic","Century Schoolbook","Chiller","Colonna MT","Comic Sans MS","Cooper","Copperplate Gothic","Courier","Courier New","Curlz MT","Desdemona","Edwardian Script ITC","Elephant","Engravers MT","EngraversGothic BT","Eras ITC","Eurostile","Felix Titling","Flexure","Footlight MT","Forte","Franklin Gothic Book","Freestyle Script","French Script MT","Garamond","Georgia","Gigi","Gill Sans MT","Gloucester MT","Goudy Old Style","Goudy Stout","Gradl","Haettenschweiler","Harlow Solid Italic","Harrington","Helvetia","High Tower Text","Hippo","Humanist521 Bold Cn BT","Impact","Imprint MT Shadow","Informal Roman","Jokerman","Juice ITC","Kino MT","Kristen ITC","Kunstler Script","LcdD","Lucida Blackletter","Lucida Calligraphy","Lucida Fax","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Magneto","Maiandra GD","Matisse ITC","Matura MT Script Capitals","Mead","Mercurius Script MT","Mistral","Modern No. 20","Monotype Corsiva","MS Sans Serif","News Gothic MT","Niagara Engraved","Niagara Solid","
OCR A","Old English Text MT","Onyx","Onyx BT","Oz Handicraft BT","Palace Script MT","Palatino Linotype","Papyrus","Parchment","Perpetua Titling MT","Placard Condensed","Playbill","Poor Richard","Pristina","QuickType","Rage","Ransom","Ravie","Ribbon131 Bd BT","Rockwell","Script MT","ShelleyVolante","Showcard Gothic","Snap ITC","Stencil","Swiss721 BlkEx BT","Tahoma","Tempus Sans ITC","Terminal","Times New Roman","T-Roman","Transam","Trebuchet MS","Tw Cen MT","Utopia","Verdana","Viner Hand ITC","Vivaldi","Vladimir Script","Westminster","Wide Latin","Xerox Sans Serif","Xerox Serif","Utopia","Zapf Chancery",

// Microsoft fonts
"Andale Mono", "Arial", "Arial Black", "Calibri", "Cambria", "Comic Sans MS", "Candara", "Consolas", "Constantia", "Corbel", "Courier New", "Georgia",  "Impact", "Times New Roman", "Webdings",

// urw-fonts
"Bookman", "Zapf Chancery", "URW Gothic L", "Palatino", "New Century Schoolbook"
];


string sContentType = "vector";
string sData = "";                               
string sExtraParams = "width:1024,height:1024";
integer i;
integer j;
integer k;


draw_fonts(list fonts)
{
    sData += "PenSize 5; ";
    sData += "PenColour Red; "; 
    sData += "FontSize 14; ";    
    for (i = 0; i <= llGetListLength(fonts); ++i)
    {
        j=i;
        k=1;
        if (i>=40)
        {
            j= i-40;
            k= 250;
        }
        if (i>=80)
        {
            j= i-80;
            k= 500;
        }
        if (i>=120)
        {
            j= i-120;
            k= 750;
        }                 
        //llOwnerSay((string)i+","+(string)j+","+(string)k+llList2String(fonts,i));
        sData += "MoveTo "+(string)k+","+(string)(20*j)+"; ";
        string name = llList2String(fonts,i);
        sData += "FontName "+name+"; Text "+name+";";
    }

    osSetDynamicTextureData("", sContentType, sData, sExtraParams, 0);
}


default
{
    state_entry()
    {
        draw_fonts(lFonts);
    }
}
These users thanked the author Oren Hurvitz for the post (total 7):
Dot MatrixConstance PeregrineGraham MillsSerene JewellMin TigerpawMike LorreyChris Namaste
Gavin Hird
Posts: 19
Joined: Mon May 26, 2014 10:58 am
Has thanked: 0
Been thanked: 17 times

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Gavin Hird »

Thanks for the script.

Not relevant to Kitely, but when OpenSim is running on OS X all fonts installed on the system (globally available from /Library/System/Fonts) are also available to OpenSim via mono. All the Microsoft fonts listed in the script are installed on OS X by default + a bunch of fonts that Apple has licensed since 1984 such as Helvetica.
These users thanked the author Gavin Hird for the post (total 2):
Dot MatrixMin Tigerpaw
User avatar
Min Tigerpaw
Posts: 223
Joined: Sun Mar 24, 2013 3:52 pm
Has thanked: 332 times
Been thanked: 160 times

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Min Tigerpaw »

Super Oren ....you're my hero!

here are some of the fonts in action:
Attachments
Fonts_New_001.jpg
These users thanked the author Min Tigerpaw for the post (total 4):
Ilan TochnerSerene JewellHandy LowOren Hurvitz
User avatar
Brayla Sana
Posts: 78
Joined: Wed Mar 27, 2013 7:09 pm
Has thanked: 19 times
Been thanked: 144 times

Re: Fonts in Kitely and Opensim for dynamic textures

Post by Brayla Sana »

I know this is a bit of a necro, but have you considered adding some Google fonts?

https://fonts.google.com/

Or Font Squirrel?

https://www.fontsquirrel.com/

IMO, Font Squirrel has some fantastic fonts. In font Squirrel, click the sample and it has the license in a tab. If you want, I can look for some nice ones that use the SIL Open Font License, which is the license you want.
These users thanked the author Brayla Sana for the post:
Dot Matrix
Dadiella's for Fashion and Brayla Sana Gallery for Building!
Post Reply