diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-04-23 22:39:26 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-04-23 22:39:26 +0000 |
commit | 69cf82185e7f559d8858b44fa76379c771acc6b6 (patch) | |
tree | 408ec5fb96da98a352588858db9ac3184d438b07 /src/menu | |
parent | eecfb075df0c92a46c73901ee3cacbf061742825 (diff) | |
download | usdx-69cf82185e7f559d8858b44fa76379c771acc6b6.tar.gz usdx-69cf82185e7f559d8858b44fa76379c771acc6b6.tar.xz usdx-69cf82185e7f559d8858b44fa76379c771acc6b6.zip |
- font fallback added
- more configurable fonts.ini
- ftNormal/ftBold/ftOutline1/2 added
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2293 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/menu')
-rw-r--r-- | src/menu/UDisplay.pas | 2 | ||||
-rw-r--r-- | src/menu/UMenuSelectSlide.pas | 4 | ||||
-rw-r--r-- | src/menu/UMenuText.pas | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/menu/UDisplay.pas b/src/menu/UDisplay.pas index f813220e..02fda099 100644 --- a/src/menu/UDisplay.pas +++ b/src/menu/UDisplay.pas @@ -703,7 +703,7 @@ begin glDisable(GL_BLEND); // set font specs - SetFontStyle(0); + SetFontStyle(ftNormal); SetFontSize(21); SetFontItalic(false); glColor4f(0, 0, 0, 1); diff --git a/src/menu/UMenuSelectSlide.pas b/src/menu/UMenuSelectSlide.pas index 17c5a7a8..09ce3b9f 100644 --- a/src/menu/UMenuSelectSlide.pas +++ b/src/menu/UMenuSelectSlide.pas @@ -372,7 +372,7 @@ begin begin MaxLen := TextureSBG.W - MinSideSpacing * 2; - SetFontStyle(0); + SetFontStyle(ftNormal); SetFontSize(Text.Size); // we will remove min. 2 letters by default and replace them w/ points @@ -444,7 +444,7 @@ var maxlength: real; I: integer; begin - SetFontStyle(0{Text.Style}); + SetFontStyle(ftNormal{Text.Style}); SetFontSize(Text.Size); maxlength := 0; diff --git a/src/menu/UMenuText.pas b/src/menu/UMenuText.pas index 276f961b..ab180b77 100644 --- a/src/menu/UMenuText.pas +++ b/src/menu/UMenuText.pas @@ -297,7 +297,7 @@ begin SetFontPos(X2, Y); glPrint(Text2); - SetFontStyle(0); // reset to default + SetFontStyle(ftNormal); // reset to default end else begin} @@ -326,12 +326,12 @@ begin {if Size >= 10 then Y2 := Y2 + Size * 0.93 else} - if (Style = 1) then + if (Style = ftBold) then Y2 := Y2 + Size * 0.93 else Y2 := Y2 + Size * 0.72; end; - SetFontStyle(0); // reset to default + SetFontStyle(ftNormal); // reset to default //end; end; @@ -344,7 +344,7 @@ end; constructor TText.Create(X, Y: real; const Text: UTF8String); begin - Create(X, Y, 0, 0, 30, 0, 0, 0, 0, Text, false, 0, 0); + Create(X, Y, 0, ftNormal, 30, 0, 0, 0, 0, Text, false, 0, 0); end; constructor TText.Create(ParX, ParY, ParW: real; |