Font - Ubuntu - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12) +--- Thread: Font - Ubuntu (/showthread.php?tid=5262) |
Font - Ubuntu - JoeMaro - 01-22-2015 If you find the standard font difficult to read, like i did, here is a pk3 with the Ubuntu font and a cfg ready to use in xonotic. After reading this page ( http://font.ubuntu.com/licence/ ) i think its legal to include the ubuntu font in the package. To use the font, copy the pk3 to your data folder of your xonotic installation and type Code: exec font-ubuntu.cfg ps: i recommend "con_textsize 12" for this... Screenshots: how to scale them down? thnx antibody! RE: Font - Ubuntu - Antibody - 01-23-2015 Would you mind putting a screenshot of how it looks here so people can have a preview before doing this? RE: Font - Ubuntu - Mr. Bougo - 01-25-2015 That looks cool. Huge screenshots though RE: Font - Ubuntu - Antibody - 02-03-2015 That does indeed look good. Thanks JoeMaro! RE: Font - Ubuntu - aa - 02-04-2015 Looking good actually. And yes the screenshot is tiny. RE: Font - Ubuntu - JoeMaro - 02-05-2015 (02-04-2015, 06:31 PM)aa Wrote: And yes the screenshot is tiny. how can i change the size? RE: Font - Ubuntu - Antibody - 02-05-2015 I've edited your post. Imgur lets you append an 'm' or an 'l' to the image when linking to shrink the size. I've made your embedded images use the 'l' suffix and added links to view the full size. See here for more details about the Imgur API. RE: Font - Ubuntu - BuddyFriendGuy - 04-21-2015 @JoeMaro, thank you. Although the official Xonotic font is very stylistic, the Ubuntu font font is very easy on the eyes. I encountered two problems though: 1. Some player names aren't showing in the game due to some missing symbols. Any way we can merge the two fonts, or devs, can we have a fallback font? missing_characters.png (Size: 46.27 KB / Downloads: 119) 2. I'm getting Code: Warning: Could not expand $scr_centersize Ideas? RE: Font - Ubuntu - sev - 04-22-2015 In the font config file (font-ubuntu.cfg), make sure to include Xolonium as a fallback, e.g. Code: loadfont user0 fonts/ubuntu-r,fonts/xolonium-regular,fonts/unifont-5.1.20080907,gfx/vera-sans 12 // menu font RE: Font - Ubuntu - BuddyFriendGuy - 04-22-2015 @sev, thanks! That solves problem 1 perfectly. I just noticed that font-xononium.cfg also has problem 2. Perhaps it's intended as an optional parameter? RE: Font - Ubuntu - sev - 04-23-2015 (04-22-2015, 05:25 PM)BuddyFriendGuy Wrote: I just noticed that font-xononium.cfg also has problem 2. Perhaps it's intended as an optional parameter? My best guess is that scr_centersize once was used as a variable, but got removed from the code. However, it wasn't removed from the font config files, which still try to access it, which causes the warning. I currently don't have time to look into this, but have put it on my todo list, in case no one else fixes it in the meantime. RE: Font - Ubuntu - BuddyFriendGuy - 04-23-2015 @sev, you are right. It was removed 4 years ago by terencehill. I can do it if you can show me what to do with lines like these: Code: loadfont user1 fonts/xolonium-regular.otf,fonts/unifont-5.1.20080907,gfx/vera-sans 4 6 8 10 12 14 16 20 24 28 32 $hud_fontsize $scr_centersize // csqc font Or perhaps @terencehill can do it? RE: Font - Ubuntu - sev - 04-24-2015 Nice research. The loadfont command is explained in qcsrc/dpdefs/csprogsdefs.qh:808 (grep ftw): Code: // loadfont fontname fontmaps size1 size2 ... The command expects an arbitrary sequence of sizes. Hence you can simply remove $scr_centersize at the end, and all works fine: Code: loadfont user1 fonts/xolonium-regular.otf,fonts/unifont-5.1.20080907,gfx/vera-sans 4 6 8 10 12 14 16 20 24 28 32 $hud_fontsize // csqc font RE: Font - Ubuntu - BuddyFriendGuy - 04-24-2015 Thanks @sev. Submitted the changes. update: now merged |