diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp index c16efc243e..5809a0fa45 100644 --- a/indra/llrender/llfontgl.cpp +++ b/indra/llrender/llfontgl.cpp @@ -852,6 +852,10 @@ bool LLFontGL::loadDefaultFonts() succ &= (NULL != getFontSansSerifBold()); succ &= (NULL != getFontMonospace()); succ &= (NULL != getFontExtChar()); + // Advanced script editor + succ &= (NULL != getFontScripting()); + succ &= (NULL != getFontOCRA()); + // return succ; } @@ -1036,6 +1040,22 @@ LLFontGL* LLFontGL::getFontSansSerifBold() return fontp; } +// Advanced Script Editor +//static +LLFontGL* LLFontGL::getFontScripting() +{ + static LLFontGL* fontp = getFont(LLFontDescriptor("Scripting","Monospace",0)); + return fontp; +} + +//static +LLFontGL* LLFontGL::getFontOCRA() +{ + static LLFontGL* fontp = getFont(LLFontDescriptor("OCRA","Monospace",0)); + return fontp; +} +// + //static LLFontGL* LLFontGL::getFontExtChar() { @@ -1064,12 +1084,21 @@ LLFontGL* LLFontGL::getFontByName(const std::string& name) { return getFontSansSerifBig(); } - else if (name == "SMALL" || name == "OCRA") + // Advanced script editor + //else if (name == "SMALL" || name == "OCRA") + else if (name == "SMALL") + // { - // *BUG: Should this be "MONOSPACE"? Do we use "OCRA" anymore? + // *BUG: Should this be "MONOSPACE"? // Does "SMALL" mean "SERIF"? return getFontMonospace(); } + // Advanced script editor + else if (name == "OCRA") + { + return getFontOCRA(); + } + // else { return NULL; diff --git a/indra/llrender/llfontgl.h b/indra/llrender/llfontgl.h index 7e19b77917..461823be18 100644 --- a/indra/llrender/llfontgl.h +++ b/indra/llrender/llfontgl.h @@ -179,6 +179,10 @@ public: static LLFontGL* getFontSansSerifBig(); static LLFontGL* getFontSansSerifHuge(); static LLFontGL* getFontSansSerifBold(); + // Advanced script editor + static LLFontGL* getFontScripting(); + static LLFontGL* getFontOCRA(); + // static LLFontGL* getFontExtChar(); static LLFontGL* getFont(const LLFontDescriptor& desc); // Use with legacy names like "SANSSERIF_SMALL" or "OCRA" diff --git a/indra/newview/fonts/fonts.xml b/indra/newview/fonts/fonts.xml index 35537f8ee9..83d508c4ac 100644 --- a/indra/newview/fonts/fonts.xml +++ b/indra/newview/fonts/fonts.xml @@ -62,11 +62,16 @@ DejaVuSansMono.ttf - SourceCodePro-Regular.ttf + + ocra.ttf + + DejaVuSans.ttf @@ -143,7 +148,7 @@ DejaVuSans.ttf - diff --git a/indra/newview/fonts/fonts_droid.xml b/indra/newview/fonts/fonts_droid.xml index cbc4971b52..1d700cf5df 100644 --- a/indra/newview/fonts/fonts_droid.xml +++ b/indra/newview/fonts/fonts_droid.xml @@ -62,11 +62,16 @@ DroidSansMono.ttf - SourceCodePro-Regular.ttf + + ocra.ttf + + DroidSans.ttf @@ -143,7 +148,7 @@ DroidSans.ttf - diff --git a/indra/newview/fonts/fonts_dyslexia.xml b/indra/newview/fonts/fonts_dyslexia.xml index b39d796fc0..d75dd27f4f 100644 --- a/indra/newview/fonts/fonts_dyslexia.xml +++ b/indra/newview/fonts/fonts_dyslexia.xml @@ -62,13 +62,18 @@ MobiSansMono.ttf - SourceCodePro-Regular.ttf + + + ocra.ttf + + comment="Name of DejaVu font"> opendyslexic.ttf @@ -143,7 +148,7 @@ opendyslexic.ttf - diff --git a/indra/newview/fonts/fonts_liberation.xml b/indra/newview/fonts/fonts_liberation.xml index 69c67abc8a..0c0f12135a 100644 --- a/indra/newview/fonts/fonts_liberation.xml +++ b/indra/newview/fonts/fonts_liberation.xml @@ -62,10 +62,15 @@ LiberationMono-Regular.ttf - SourceCodePro-Regular.ttf + + + ocra.ttf + @@ -143,7 +148,7 @@ DejaVuSans.ttf - diff --git a/indra/newview/fonts/fonts_mobi.xml b/indra/newview/fonts/fonts_mobi.xml index 79da54bc69..d7b529615d 100644 --- a/indra/newview/fonts/fonts_mobi.xml +++ b/indra/newview/fonts/fonts_mobi.xml @@ -62,10 +62,15 @@ MobiSansMono.ttf - SourceCodePro-Regular.ttf + + + ocra.ttf + @@ -143,7 +148,7 @@ MobiSans.ttf - diff --git a/indra/newview/fonts/fonts_roboto.xml b/indra/newview/fonts/fonts_roboto.xml index f847b17fc3..1c51115693 100644 --- a/indra/newview/fonts/fonts_roboto.xml +++ b/indra/newview/fonts/fonts_roboto.xml @@ -62,11 +62,16 @@ MobiSansMono.ttf - SourceCodePro-Regular.ttf + + ocra.ttf + + Roboto-Regular.ttf @@ -143,7 +148,7 @@ Roboto-Regular.ttf - diff --git a/indra/newview/fonts/fonts_ubuntu.xml b/indra/newview/fonts/fonts_ubuntu.xml index dbfd30ab5e..c6e68da05b 100644 --- a/indra/newview/fonts/fonts_ubuntu.xml +++ b/indra/newview/fonts/fonts_ubuntu.xml @@ -62,10 +62,15 @@ UbuntuMono-R.ttf - UbuntuMono-R.ttf + + + ocra.ttf + @@ -137,7 +142,7 @@ - diff --git a/indra/newview/fonts/ocra.ttf b/indra/newview/fonts/ocra.ttf new file mode 100644 index 0000000000..241af99d87 Binary files /dev/null and b/indra/newview/fonts/ocra.ttf differ diff --git a/indra/newview/skins/default/xui/en/panel_script_ed.xml b/indra/newview/skins/default/xui/en/panel_script_ed.xml index 192ca2e079..4469583cf3 100644 --- a/indra/newview/skins/default/xui/en/panel_script_ed.xml +++ b/indra/newview/skins/default/xui/en/panel_script_ed.xml @@ -318,7 +318,7 @@ type="string" length="1" follows="left|top|right|bottom" - font="Script" + font="Scripting" height="376" ignore_tab="false" layout="topleft" diff --git a/indra/newview/skins/default/xui/en/panel_script_ed_preproc.xml b/indra/newview/skins/default/xui/en/panel_script_ed_preproc.xml index 06047c5985..0c07c7870a 100644 --- a/indra/newview/skins/default/xui/en/panel_script_ed_preproc.xml +++ b/indra/newview/skins/default/xui/en/panel_script_ed_preproc.xml @@ -342,7 +342,7 @@ type="string" length="1" follows="left|top|right|bottom" - font="Script" + font="Scripting" height="376" ignore_tab="false" layout="topleft" @@ -378,7 +378,7 @@ type="string" length="1" follows="left|top|right|bottom" - font="Script" + font="Scripting" height="376" ignore_tab="false" layout="topleft" diff --git a/indra/newview/skins/vintage/xui/en/panel_script_ed.xml b/indra/newview/skins/vintage/xui/en/panel_script_ed.xml index a13af7889e..27c93fb687 100644 --- a/indra/newview/skins/vintage/xui/en/panel_script_ed.xml +++ b/indra/newview/skins/vintage/xui/en/panel_script_ed.xml @@ -318,8 +318,8 @@ type="string" length="1" follows="left|top|right|bottom" - font="Script" - font.size="Script" + font="Scripting" + font.size="Scripting" height="376" ignore_tab="false" layout="topleft" diff --git a/indra/newview/skins/vintage/xui/en/panel_script_ed_preproc.xml b/indra/newview/skins/vintage/xui/en/panel_script_ed_preproc.xml index 06047c5985..5e9401b59c 100644 --- a/indra/newview/skins/vintage/xui/en/panel_script_ed_preproc.xml +++ b/indra/newview/skins/vintage/xui/en/panel_script_ed_preproc.xml @@ -342,7 +342,8 @@ type="string" length="1" follows="left|top|right|bottom" - font="Script" + font="Scripting" + font.size="Scripting" height="376" ignore_tab="false" layout="topleft" @@ -378,7 +379,8 @@ type="string" length="1" follows="left|top|right|bottom" - font="Script" + font="Scripting" + font.size="Scripting" height="376" ignore_tab="false" layout="topleft"