Skip to content

Commit

Permalink
Update 8.75pt font to be 9pt. Makes text look a little nicer and less…
Browse files Browse the repository at this point in the history
… blurry.
  • Loading branch information
ethanmoffat committed Apr 5, 2022
1 parent 4bf92a6 commit 55e231b
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion EOLib/misc.cs
Expand Up @@ -54,7 +54,7 @@ public static class Constants
public const string FontSize07 = @"Fonts/InGame_Main_07";
public const string FontSize08 = @"Fonts/InGame_Main_08";
public const string FontSize08pt5 = @"Fonts/InGame_Main_08pt5";
public const string FontSize08pt75 = @"Fonts/InGame_Main_08pt75";
public const string FontSize09 = @"Fonts/InGame_Main_09";
public const string FontSize10 = @"Fonts/InGame_Main_10";

public const int OutOfBand_Packets_Handled_Per_Update = 10;
Expand Down
4 changes: 2 additions & 2 deletions EndlessClient/ContentPipeline/Content.mgcb
Expand Up @@ -235,11 +235,11 @@
/processorParam:TextureFormat=Compressed
/build:Fonts/InGame_Main_08pt5.spritefont

#begin Fonts/InGame_Main_08pt75.spritefont
#begin Fonts/InGame_Main_09.spritefont
/importer:FontDescriptionImporter
/processor:FontDescriptionProcessor
/processorParam:TextureFormat=Compressed
/build:Fonts/InGame_Main_08pt75.spritefont
/build:Fonts/InGame_Main_09.spritefont

#begin Fonts/InGame_Main_10.spritefont
/importer:FontDescriptionImporter
Expand Down
Expand Up @@ -17,7 +17,7 @@ with.
Size is a float value, measured in points. Modify this value to change
the size of the font.
-->
<Size>8.75</Size>
<Size>9</Size>

<!--
Spacing is a float value, measured in pixels. Modify this value to change
Expand Down
8 changes: 4 additions & 4 deletions EndlessClient/Dialogs/ListDialogItem.cs
Expand Up @@ -112,7 +112,7 @@ public ListDialogItem(ScrollingListDialog parent, ListItemStyle style, int listI

int colorFactor = Style == ListItemStyle.Large ? 0xc8 : 0xb4;

_primaryText = new XNALabel(Constants.FontSize08pt5)
_primaryText = new XNALabel(Constants.FontSize09)
{
AutoSize = false,
BackColor = Color.Transparent,
Expand All @@ -125,7 +125,7 @@ public ListDialogItem(ScrollingListDialog parent, ListItemStyle style, int listI
_primaryText.SetParentControl(this);
_primaryText.Initialize();

_subText = new XNALabel(Constants.FontSize08pt5)
_subText = new XNALabel(Constants.FontSize09)
{
AutoSize = true,
BackColor = _primaryText.BackColor,
Expand All @@ -152,7 +152,7 @@ public ListDialogItem(ScrollingListDialog parent, ListItemStyle style, int listI
public void SetPrimaryClickAction(EventHandler onClickAction)
{
var oldText = _primaryText;
_primaryText = new XNAHyperLink(Constants.FontSize08pt5)
_primaryText = new XNAHyperLink(Constants.FontSize09)
{
AutoSize = false,
BackColor = oldText.BackColor,
Expand Down Expand Up @@ -181,7 +181,7 @@ public void SetSubtextClickAction(EventHandler onClickAction)
throw new InvalidOperationException("Unable to set subtext click action when style is Small");

var oldText = _subText;
_subText = new XNAHyperLink(Constants.FontSize08pt5)
_subText = new XNAHyperLink(Constants.FontSize09)
{
AutoSize = false,
BackColor = oldText.BackColor,
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Dialogs/Old/OldScrollingListDialog.cs
Expand Up @@ -94,7 +94,7 @@ public OldScrollingListDialog(PacketAPI api = null)
LargeItemStyleMaxItemDisplay = 5;
SmallItemStyleMaxItemDisplay = 12;

m_titleText = new XNALabel(new Rectangle(16, 13, 253, 19), Constants.FontSize08pt75)
m_titleText = new XNALabel(new Rectangle(16, 13, 253, 19), Constants.FontSize09)
{
AutoSize = false,
TextAlign = LabelAlignment.MiddleLeft,
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Dialogs/ScrollingListDialog.cs
Expand Up @@ -89,7 +89,7 @@ static ScrollingListDialog()
{
_listItems = new List<ListDialogItem>();

_titleText = new XNALabel(Constants.FontSize08pt75)
_titleText = new XNALabel(Constants.FontSize09)
{
DrawArea = new Rectangle(16, 13, 253, 19),
AutoSize = false,
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/HUD/Panels/OnlineListPanel.cs
Expand Up @@ -62,7 +62,7 @@ private enum Filter
BackgroundImage = _nativeGraphicsManager.TextureFromResource(GFXTypes.PostLoginUI, 36);
DrawArea = new Rectangle(102, 330, BackgroundImage.Width, BackgroundImage.Height);

_totalNumberOfPlayers = new XNALabel(Constants.FontSize08pt75)
_totalNumberOfPlayers = new XNALabel(Constants.FontSize09)
{
AutoSize = false,
ForeColor = ColorConstants.LightGrayText,
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Rendering/MouseCursorRenderer.cs
Expand Up @@ -91,7 +91,7 @@ private enum CursorIndex
_mouseCursorTexture.Height);
DrawArea = SingleCursorFrameArea;

_mapItemText = new XNALabel(Constants.FontSize08pt75)
_mapItemText = new XNALabel(Constants.FontSize09)
{
Visible = false,
Text = string.Empty,
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Rendering/OldCharacterRenderer.cs
Expand Up @@ -160,7 +160,7 @@ public OldCharacterRenderer(Vector2 drawLocation, CharRenderData data)
if (data.name.Length > 0)
{
//362, 167 abs loc
levelLabel = new XNALabel(new Rectangle(-32, 75, 1, 1), Constants.FontSize08pt75)
levelLabel = new XNALabel(new Rectangle(-32, 75, 1, 1), Constants.FontSize09)
{
ForeColor = ColorConstants.BeigeText,
Text = data.level.ToString()
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Rendering/OldNPCRenderer.cs
Expand Up @@ -246,7 +246,7 @@ private void InitializeStandingFrame1()

private void CreateMouseoverName()
{
_mouseoverName = new XNALabel(new Rectangle(1, 1, 1, 1), Constants.FontSize08pt75)
_mouseoverName = new XNALabel(new Rectangle(1, 1, 1, 1), Constants.FontSize09)
{
Visible = false,
Text = NPC.Data.Name,
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/UIControls/CharacterInfoPanel.cs
Expand Up @@ -95,7 +95,7 @@ public class CharacterInfoPanel : XNAControl
};
_nameLabel.SetParentControl(this);

_levelLabel = new XNALabel(Constants.FontSize08pt75)
_levelLabel = new XNALabel(Constants.FontSize09)
{
DrawArea = GetLevelLabelLocation(),
ForeColor = ColorConstants.BeigeText,
Expand Down

0 comments on commit 55e231b

Please sign in to comment.