SBS Slim Font

A coding font designed by a software engineer. Produced with by Yefu Wang.

Download
It's very narrow
The font should be extremely narrow to allow putting 3 or even 4 columns of code on a common 1080p screen.
It's Open Source
If you have Adobe Illustrator, you can use the published source code to customize the font.
It's legible
The primary goal is not to make it pretty. It's legible and narrow.
It's maintained
Comments and requests are welcome. Please submit any issues via GitHub .

See it in ACTION

Bash

#!/bin/bash
  
  ###### CONFIG
  ACCEPTED_HOSTS="/root/.hag_accepted.conf"
  BE_VERBOSE=false
  
  if [ "$UID" -ne 0 ]
  then
   echo "Superuser rights required"
   exit 2
  fi
  
  genApacheConf(){
   echo -e "# Host ${HOME_DIR}$1/$2 :"
  }
  
  echo '"quoted"' | tr -d \" > text.txt
  

C#

using System.IO.Compression;

#pragma warning disable 414, 3021

namespace MyApplication
{
[Obsolete("...")]
class Program : IInterface
{
    public static List<int> JustDoIt(int count)
    {
        Span<int> numbers = stackalloc int[length];
        Console.WriteLine($"Hello {Name}!");
        return new List<int>(new int[] { 1, 2, 3 })
    }
}
}

CSS

@font-face {
font-family: Chunkfive; src: url('Chunkfive.otf');
}

body, .usertext {
color: #F0F0F0; background: #600;
font-family: Chunkfive, sans;
--heading-1: 30px/32px Helvetica, sans-serif;
}

@import url(print.css);
@media print {
a[href^=http]::after {
content: attr(href)
}
}

Markdown

# hello world

you can write text [with links](http://example.com) inline
 or [link references][1].

* one _thing_ has *em*phasis
* two __things__ are **bold**

[1]: http://example.com

---

hello world
===========

<this_is inline="xml"></this_is>

> markdown is so cool

so are code segments

1. one thing (yeah!)
2. two thing `i can write code`, and `more` wipee!

Diff

Index: languages/ini.js
===================================================================
--- languages/ini.js    (revision 199)
+++ languages/ini.js    (revision 200)
@@ -1,8 +1,7 @@
hljs.LANGUAGES.ini =
{
case_insensitive: true,
-  defaultMode:
-  {
+  defaultMode: {
 contains: ['comment', 'title', 'setting'],
 illegal: '[^\\s]'
},

*** /path/to/original timestamp
--- /path/to/new      timestamp
***************
*** 1,3 ****
--- 1,9 ----
+ This is an important
+ notice! It should
+ therefore be located at
+ the beginning of this
+ document!

! compress the size of the
! changes.

It is important to spell

Ruby

# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end

def salute
puts "Hello #{@name}!"
end
end

g = Greeter.new("world")
g.salute

Go

package main

import "fmt"

func main() {
ch := make(chan float64)
ch <- 1.0e10    // magic number
x, ok := <- ch
defer fmt.Println(`exitting now\`)
go println(len("hello world!"))
return
}

TOML, also INI

; boilerplate
[package]
name = "some_name"
authors = ["Author"]
description = "This is \
a description"

[[lib]]
name = ${NAME}
default = True
auto = no
counter = 1_000

Java

/**
* @author John Smith <john.smith@example.com>
*/
package l2f.gameserver.model;

public abstract strictfp class L2Char extends L2Object {
public static final Short ERROR = 0x0001;

public void moveTo(int x, int y, int z) {
_ai = null;
log("Should not be called");
if (1 > 5) { // wtf!?
  return;
}
}
}

JavaScript

function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
  return process(block, true, 0x0F) +
         ` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
  console.log('undefined');
}

return (
<div>
  <web-component>{block}</web-component>
</div>
)
}

export  $initHighlight;

JSON

[
{
"title": "apples",
"count": [12000, 20000],
"description": {"text": "...", "sensitive": false}
},
{
"title": "oranges",
"count": [17500, null],
"description": {"text": "...", "sensitive": false}
}
]

Kotlin

import kotlinx.serialization.Serializable
import kotlin.random.Random

interface Building

@Serializable
class House(
private val rooms: Int? = 3,
val name: String = "Palace"
) : Building {
var residents: Int = 4
    get() {
        println("Current residents: $field")
        return field
    }

fun burn(evacuation: (people: Int) -> Boolean) {
    rooms ?: return
    if (evacuation((0..residents).random()))
        residents = 0
}
}

fun main() {
val house = House(name = "Skyscraper 1")
house.burn {
    Random.nextBoolean()
}
}

Less

@import "fruits";

@rhythm: 1.5em;

@media screen and (min-resolution: 2dppx) {
body {font-size: 125%}
}

section > .foo + #bar:hover [href*="less"] {
margin:     @rhythm 0 0 @rhythm;
padding:    calc(5% + 20px);
background: #f00ba7 url(http://placehold.alpha-centauri/42.png) no-repeat;
background-image: linear-gradient(-135deg, wheat, fuchsia) !important ;
background-blend-mode: multiply;
}

@font-face {
font-family: /* ? */ 'Omega';
src: url('../fonts/omega-webfont.woff?v=2.0.2');
}

.icon-baz::before {
display:     inline-block;
font-family: "Omega", Alpha, sans-serif;
content:     "\f085";
color:       rgba(98, 76 /* or 54 */, 231, .75);
}

Lua

--[[
Simple signal/slot implementation
]]
local signal_mt = {
__index = {
    register = table.insert
}
}
function signal_mt.__index:emit(... --[[ Comment in params ]])
for _, slot in ipairs(self) do
    slot(self, ...)
end
end
local function create_signal()
return setmetatable({}, signal_mt)
end

-- Signal test
local signal = create_signal()
signal:register(function(signal, ...)
print(...)
end)
signal:emit('Answer to Life, the Universe, and Everything:', 42)

--[==[ [=[ [[
Nested ]]
multi-line ]=]
comment ]==]
[==[ Nested
[=[ multi-line
[[ string
]] ]=] ]==]

Makefile

# Makefile

BUILDDIR      = _build
EXTRAS       ?= $(BUILDDIR)/extras

.PHONY: main clean

main:
@echo "Building main facility..."
build_main $(BUILDDIR)

clean:
rm -rf $(BUILDDIR)/*