Skip to main content

News

Topic: Some Fonts for Sphere (Read 6980 times) previous topic - next topic

0 Members and 2 Guests are viewing this topic.
Some Fonts for Sphere
I haven't been all that active in Sphere development these days, but most of my newer projects are still using Sphere-related tech in some way :)

Most consistently I've been using Sphere-format fonts in my other projects. As such, I've got a few fairly good-quality, free-use fonts converted for Sphere-compatible setups, as well as a simple library (well...) for using Sphere fonts in C/C++. I've commited the fonts to the Sphere Group, and the script is up on RMN.

Fonts:
MS Selawik, a sans-serif font that looks pretty nice in bold.
SGI Screen, a classic monospace font.

Both of these fonts were previously proprietary, but have since been released as open by their owners (Microsoft and SGI, respectively).

Sphere Fonts C Source:
http://rpgmaker.net/engines/custom/utilities/102/

I've been using a slightly modified version of this utility in a full-custom game I've been working on. It's setup for use with SDL2, but it's pretty simple to modify it to use any other format (such as here). This is particularly interesting because I've ensured that it works via Emscripten, so you could use it to parse rfn fonts on the web.

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: Some Fonts for Sphere
Reply #1

This is particularly interesting because I've ensured that it works via Emscripten, so you could use it to parse rfn fonts on the web.


Out of curiosity, have you benchmarked it against the handwritten reference implementation yet? I'd love to find out which is faster.

  • DaVince
  • [*][*][*][*][*]
  • Administrator
  • Used Sphere for, like, half my life
Re: Some Fonts for Sphere
Reply #2
Nice! Would you consider uploading them to the Resources folder in the downloads repo too? :)

Re: Some Fonts for Sphere
Reply #3
@Neo: My implementation is probably faster, mostly just because I do no format conversion and emscripten tends to be just a little faster anyways. I've used it in a couple emscripten/SDL2 demos, and the performance has been quite good.

@DaVince: I certainly can. I need to re-figure-out how to actually do that...
  • Last Edit: December 19, 2015, 06:18:59 am by Flying Jester

  • FBnil
  • [*][*]
Re: Some Fonts for Sphere
Reply #4
@FJ: I like the Selawik, very useful proportional font. The SGI looks unfinished, what are those weird things before chr 32? Still, good font too.

  • N E O
  • [*][*][*][*][*]
  • Administrator
  • Senior Administrator
Re: Some Fonts for Sphere
Reply #5
Everything before chr 32 are supposed to be control characters and not usually give visible change when typing except for carriage return, line feed, tab, and maybe vertical tab.

Re: Some Fonts for Sphere
Reply #6
Some fonts also use them for box-drawing characters, like what you see in curses. I'm pretty sure Selawik does this, I've seen those characters when I accidentally fed it garbage.

Either way, most of those characters other than the whitespace are control characters that will usually not be used.

  • DaVince
  • [*][*][*][*][*]
  • Administrator
  • Used Sphere for, like, half my life
Re: Some Fonts for Sphere
Reply #7

@DaVince: I certainly can. I need to re-figure-out how to actually do that...

Just log in to Google Drive, the Spherical folder should be in your "shared with me" section! :)

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: Some Fonts for Sphere
Reply #8
Just got a chance to look at these.  SGI Screen is nice, reminds me of a monospace version of the default Sphere font (which I love).  Selawik looks like it was converted with antialiasing turned on, which doesn't look very nice at low resolutions.  It's also a bit on the larger side, though that might be intentional.
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub

Re: Some Fonts for Sphere
Reply #9
I ran Selawik at a few sizes and faces. The bold variants look much better than the other ones, although even then they are a little blurry. I've been meaning to do a little cleanup.

The SGI font is also a bit big, but it looks pretty good. Probably because it is converted from a Type 1 font, rather than truetype.

  • Fat Cerberus
  • [*][*][*][*][*]
  • Global Moderator
  • Sphere Developer
Re: Some Fonts for Sphere
Reply #10
My favorite monospace font to use for low-res (320x240) games was always Lucida Console @ 7pt.  That's generally a pretty bland and somewhat ugly font (which is why I rejoiced when Vista introduced Consolas), but at small point sizes it's just perfect.
neoSphere 5.9.2 - neoSphere engine - Cell compiler - SSj debugger
forum thread | on GitHub