Font fixes and changes #720

Merged
merged 1 commit into from Apr 18, 2015

Projects

None yet

4 participants

@Bo98
Contributor
Bo98 commented Jun 6, 2014
  • Removed OS X specific Derma font. This now uses Tahoma like Windows. Already done by @UnderscoreKilburn.
  • Added Linux specific Derma font. Linux distros are more likely to have the close-looking DejaVu Sans than Tahoma. This MAY fix the italic font some people had in Derma but will NOT fix surface.CreateFont using an italic font as a default if the font cannot be found. I was unable to reproduce this so I cannot confirm whether it even fixes Derma.
  • Added Windows and Linux specific fonts to the Workshop download VGUI. Before this only had Helvetica which these systems may not have.
@Mors-Quaedam

I can confirm this fixes the Linux font issue.

Fix

@Bo98 Bo98 referenced this pull request in Facepunch/garrysmod-issues Jul 15, 2014
Open

Custom fonts not appearing in Linux specifically #415

@MrUnknownGamer
Contributor

How do I install this on my mac? I copied and pasted whats in the download folder but still did not change the font on my mac. any help?

@robotboy655 robotboy655 and 1 other commented on an outdated diff Sep 9, 2014
garrysmod/lua/derma/init.lua
@@ -35,7 +35,7 @@ surface.CreateFont( "DermaDefault",
{
font = "Tahoma",
size = 13,
- antialias = true,
+ antialias = false,
@robotboy655
robotboy655 Sep 9, 2014 Collaborator

What's up with this?

@Bo98
Bo98 Sep 9, 2014 Contributor

I believe it was for two reasons:

  1. Consistency. The bold derma font is not antialiased. And the fonts were not antialiased on OS X in the past (and now not on Linux either).
  2. It looks better OS X. But that is probably because font rendering in GMod for OS X is generally shit.

I could enable it again if you feel it will be better that way.

@robotboy655
robotboy655 Sep 9, 2014 Collaborator

Please do. I believe vinh is gonna change the font renderer ( at least he was going to ), so those problems should go away.

@Bo98
Bo98 Sep 9, 2014 Contributor

Alright, will I antialias the bold font and the Linux fonts too? The bold font was never antialiased before.

@robotboy655
robotboy655 Sep 9, 2014 Collaborator

I see nothing wrong with that.

@robotboy655 robotboy655 added the pending label Sep 9, 2014
@MrUnknownGamer
Contributor

The font is still the same font. It does not change on TTT or any other modes on my mac

@Bo98
Contributor
Bo98 commented Sep 9, 2014

I think TTT creates its own fonts. I will look into that in a separate pull request.

This fix definitely works for Sandbox.

@MrUnknownGamer
Contributor

ok. please tell me when you think you fixed TTT

@Bo98
Contributor
Bo98 commented Sep 10, 2014

@robotboy655: Antialiasing is now enabled.

@robotboy655
Collaborator

Drop the new line changes and rebase.

@Bo98 Bo98 Font fixes and changes:
* Added Linux specific Derma font. Linux distros are more likely to have are close-looking DejaVu Sans than Tahoma.
* Added Windows and Linux specific fonts to the Workshop download VGUI. Before this only had Helvetica which these systems may not have.
e240015
@Bo98
Contributor
Bo98 commented Apr 18, 2015

Done.

@robotboy655 robotboy655 merged commit 65d4161 into garrynewman:master Apr 18, 2015
@Bo98 Bo98 deleted the Bo98:fonts branch Apr 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment