internet-development/www-server-mono
关于
Server Mono 是一款字体,灵感来自打字机、Apple 的 San Francisco Mono、ASCII 艺术、命令行界面和编程工具。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文SERVER MONO
This repository contains the source files for Server Mono and the source code for our website, which is built using our next-sass-starter template system used across all our websites.
Server Mono is a typeface inspired by typewriters, Apple's San Francisco Mono, ASCII art, command-line interfaces, and programming tools.
Server Mono continues the long tradition of monospace fonts, renowned for their versatility in command-line interfaces due to their clear readability and uniform character width. You'll notice our own preferences reflected in the design, as we value how it performs across various viewing contexts. Server Mono offers excellent readability and pairs well with its uniform, predictable, and orderly appearance.
This single-weight font was released in 2024 by the Internet Development Studio Company of Seattle, Washington. Created by designers Tim Vanhille and Matthieu Salvaggio, with supplemental direction from Jimmy Lee and the Internet Development Studio Company community.
Download
You can download the latest version from our GitHub Releases page.
Alternatively, you can install it locally using Homebrew font-server-mono
brew install --cask font-server-mono
Usage
Self Hosted
Add the downloaded font files to your website's public/static directory. The examples below use a /fonts/ prefix, but you can adjust this path to match your project structure.
Copy the below snippet into your CSS file:
/* Regular weight - used for normal text */
@font-face {
font-family: 'ServerMono';
src: url('/fonts/ServerMono-Regular.woff2') format('woff2'), /* Best compression, modern browsers */
url('/fonts/ServerMono-Regular.woff') format('woff'), /* Good compression, wider support */
url('/fonts/ServerMono-Regular.otf') format('opentype'); /* Largest files, universal support */
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* Oblique variant - used for italic/oblique text */
@font-face {
font-family: 'ServerMono';
src: url('/fonts/ServerMono-RegularOblique.woff2') format('woff2'),
url('/fonts/ServerMono-RegularOblique.woff') format('woff'),
url('/fonts/ServerMono-RegularOblique.otf') format('opentype');
font-weight: normal;
font-style: oblique;
font-display: swap;
}
CDN Hosted
Server Mono is also available through the jsDelivr CDN, so that you can use the fonts without downloading and hosting them yourself.
Use the pre-built CSS to quickly add Server Mono on your website:
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/server-mono.css">
Or you can copy the below snippet into your CSS file:
/* Regular weight - used for normal text */
@font-face {
font-family: 'ServerMono';
src: url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/public/fonts/ServerMono-Regular.woff2') format('woff2'), /* Best compression, modern browsers */
url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/public/fonts/ServerMono-Regular.woff') format('woff'), /* Good compression, wider support */
url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/public/fonts/ServerMono-Regular.otf') format('opentype'); /* Largest files, universal support */
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* Oblique variant - used for italic/oblique text */
@font-face {
font-family: 'ServerMono';
src: url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/public/fonts/ServerMono-RegularOblique.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/public/fonts/ServerMono-RegularOblique.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/internet-development/www-server-mono@latest/public/fonts/ServerMono-RegularOblique.otf') format('opentype');
font-weight: normal;
font-style: oblique;
font-display: swap;
}
Using the Font
Then you can use it across your entire site like so:
:root {
font-family: 'ServerMono', monospace;
}
To use the oblique version, set the font style to either oblique or italic:
p {
font-family: 'ServerMono', monospace;
font-style: oblique;
}
Setup Website (MacOS)
Start by cloning the repository
You will need Node.js 20.19 or later
Then run the server
npm install
npm run dev
Go to http://localhost:10000 in your browser of choice.
Contact
Thanks
- Tim Vanhille
- Matthieu Salvaggio
- Andrew Alimbuyuguen
- Jimmy Lee
- Whyrusleeping
- Philip Bedford
- Caidan Williams
探索相关项目
加载中…