1. 程式人生 > 其它 >[搬運][中英雙語]字型推薦 | 如果你每天都在程式碼面前,為何不讓其變得有趣起來呢?

[搬運][中英雙語]字型推薦 | 如果你每天都在程式碼面前,為何不讓其變得有趣起來呢?

源地址:https://realdougwilson.com/writing/coding-with-character

Operator Mono

I’ll start off with what I personally use: Operator Mono Screen Smart from Hoefler & Co. What sets it apart is the italic which has just the right amount of cursive elements (harking back to IBM Script) that allow comments and other parts of code to stand out without being distracting.

The “Screen Smart” part of the name refers to being “engineered for use on the web (and in programming environments) at text sizes as small as nine point” according to Hoefler & Co. I can’t comment on the technical details of if this actually makes a difference, but I know it looks great on my screen.

Favorite Characters: r, l, f, a, italic l, s, and g

從我正在用的開始介紹:來自 Hoefler & Co 的 Operator Mono Screen Smart。

它的斜體十分與眾不同,具有適量的草書元素(追溯到 IBM Script),可以讓評論和其他部分程式碼脫穎而出而不會分散注意力。

根據 Hoefler & Co. 的說法,名稱中的“Screen Smart”部分指的是“專為在網路(和程式設計環境)上使用而設計的文字大小小至 9 磅”。

我說不出來究竟作用多大,但它在我的螢幕上確實不錯。


Comic Code

My first thought: This has to be a joke, right?! Comic Sans has a bad reputation and was never meant to be used for coding—but what if…? That is what crazy mastermind Toshi Omagari seemed to ask.

He says, “Comic Code is a monospaced adaptation of the most over-hated typeface.” I haven’t asked, but I feel his thought process may have been something like this GIF.

Believe it or not, I think it actually works and certainly brings a smile—or at least a smirk—to your face.

Favorite Characters: R, C, l, r, italic f

我第一次見它時的想法:這簡直是個笑話,對吧?! Comic Sans有個壞名聲且從來不被認為可以用來寫程式碼—但如果試一下呢....?

這似乎就是實現這種怪異字型想法的 Toshi Omagari 要說的

他說,“ Comic Sans 是最令人討厭的等距字型的改編” 我並沒有問過,但感覺他的思想過程就像這個GIF

不管怎樣,我覺得它確實能用,並且能給你帶來微笑—或者至少是一個傻笑


Vulf Mono

“A custom monospace font for a funk band” is not a sentence that I thought I would ever write, but that is the true origin story of Vulf Mono from OH no Type Co.

Remember what I wrote above about finding creativity inside the strict constraints of the monospace genre? Well, James Edmondson has that in spades with Vulf Mono. Quirky, wide, and funky—but still totally usable for coding—makes this a personal favorite.

Favorite Characters: ½, italic i, z, %

“為 funk 樂隊定製的等寬字型”不是我想我會寫的一句話,但那是 真實的起源 有關 來自 OH no Type Co 的 Vulf Mono.

還記得我上面寫的關於在等寬字型型別的嚴格限制中尋找創造力的內容嗎?

好吧,詹姆斯·埃德蒙森 (James Edmondson) 與 Vulf Mono 完全一致。

怪、寬、時髦——但仍然完全可用於編碼——使其符合有些人的喜好。


Aglet Mono

Bridging the gap between square-ish and round-ish is Aglet Mono, the monospaced member of the Aglet family from XYZ Type. At first, I wasn’t sure about the r but it grew on me, and I find Aglet Mono to have a nice, steady visual texture.

The parentheses and fractions are particularly well-designed. Speaking of well-designed, there is a fantastic promotional Riso-printed video by the talented Kelli Anderson that may also convince you to like it.

Favorite Characters: W, R, g, (), k

彌合方形和圓形之間差距的是 Aglet Mono,XYZ Type 的 Aglet 系列的等寬成員。

起初,我好奇 r要怎麼辦,但它處理的非常令人滿意。

Aglet Mono 有一個漂亮、穩定的視覺紋理,括號和分數設計得特別好。

說到精心設計,才華橫溢的 Kelli Anderson 可能會讓你喜歡上它。


Cascadia Code

Cascadia Code is a new typeface designed by Aaron Bell for the Windows Terminal team and it is surprisingly delightful. The characters find the right balance of playful, yet invisible. There is also a non-ligature version and a Powerline version for the real nerds.

For this screen shot, I manually changed the italics to the more-playful (but arguably less familiar) Stylistic Set 01, which makes the italics more cursive in form. I personally love these cursive-leaning forms and am happy that they are included as an option.

Favorite Characters: a, 4, italic i, l, f, and s

Cascadia CodeAaron Bell 為 Windows 終端團隊設計的一種新字型,令人驚喜。

字元找到了俏皮而隱祕的恰到好處的平衡。

對於極客,還有一個非連字版本和一個電力線版本。

這個截圖,我手動將斜體更改為更有趣(但可能不太熟悉)的 Stylistic Set 01,這使斜體在形式上更加草書。

我個人喜歡這些草書形式,很高興它們作為選項包含在內。


Dico Code

As part of the Dico superfamily (which includes Sans, Slab, Mono, Code, and Mono Slab) Dico Code and Mono Script expands the usefulness into the coding realm. With the right mix of understated practicality in the Code style and playful personality in the Mono Script, Dico is a solid choice to get outside of the default monos.

I chose to show off the “Code” style of Dico because I like how the punctuation is slightly larger which makes it easier on the eyes to differentiate in a coding context. I also chose the “Mono Script” version for the italics because it has so much style.

Favorite Characters: script f and t, i, and r

作為 Dico 超級家族(包括 Sans、Slab、Mono、Code 和 Mono Slab)的一部分 Dico Code 和 Mono Script 將實用性擴充套件到編碼領域。

憑藉 Code 風格中的低調實用性和 Mono Script 中俏皮個性的正確組合,Dico 是擺脫預設 monos 的可靠選擇。

我選擇 Dico 的 “Code” 風格,因為我喜歡標點符號稍大的樣式,這使得程式碼上下文更容易區分。

我還為斜體選擇了“Mono Script”版本,它有很多好看的風格。


IBM Plex Mono

Any post that mentions the IBM Selectric typewriter would be remiss to not also mention IBM Plex Mono. To me, part of its beauty is how it fits within the larger type family of IBM Plex that has a sans, sans-condensed, and serif.

Inspired by Selectric typefaces (especially in the italics) Plex Mono blends the technical feel of typewriter fonts with a touch of personality. Since the typeface is free and open source, you are able to clone and make your own remixes or design tweaks—if you are so inclined—which is just so cool.

Favorite Characters: g, x, r, italic i, l,

任何提及 IBM Selectric typewriter 的帖子都會忽略 IBM Plex Mono

對我來說,它的部分優點在於怎樣適應具有 sans、sans-condensed 和 serif 的更大的 IBM Plex 字體系列。

受 Selectric 字型(尤其是斜體)的啟發,Plex Mono 將打字機字型的技術感與個性化融合在一起。

由於字型是 免費和開源,你可以複製並製作自己的風格或設計調整(如果願意的話),awesome!


Recursive Mono Casual

Recursive is so much more than just a monospace font, but the Mono Casual style is perfect for bringing life to your code. If the casual is a bit too casual, you can easily tweak the variable font towards the “Linear” style or anywhere in-between.

The fact that Recursive is free and infinitely customizable (click “Get Recursive” in the top right of the website) makes this a top contender. And oh yeah, the fractions are fantastic!

Favorite Characters: r, a, ½, ¾, italic l and r

Recursive 不僅僅是一種等寬字型, Mono Casual 風格非常適合為你的程式碼帶來活力。

如果隨意的有點太隨意,你可以輕鬆地將可變字型調整為“Linear”樣式或介於兩者之間的任何位置。

Recursive 是免費且可無限定製的(單擊 網站 右上角的“Get Recursive”)這將使其擁有強大的競爭力。好耶!分數的樣式真的是太棒了!


Dispatch Mono

Designed as a monospaced member of the Dispatch family, Dispatch Mono is a slab-serifed monospace with good City vibes.

Originally made for designer Cyrus Highsmith’s own personal use on shipping labels and for printing out PostScript code, Dispatch Mono is now available to bring a bit of “industrial strength” to your coding.

Favorite Characters: T, a, g, p, and f

Dispatch Mono 是 Dispatch 系列的等寬字型,跟 City 有著類似的感覺。

Dispatch Mono 最初是為設計師 Cyrus Highsmith 個人在運輸標籤上使用和列印 PostScript 程式碼而設計的,現在可以為您的編碼帶來一點“Industrial strength”(工業感)。


Gintronic

As the marketing materials state, Gintronic is “Designed to not fatigue your eyes while working habitually with code … and flavoured with a jovial and non-techy character.” This typeface has grown on me and I can’t wait to try it out.

Also, a little birdie (the designer himself) told me that a new, updated version of Gintronic (with a new name) is in the works and should be out soon.

Favorite Characters: r, l, g, i, D, and &

正如營銷介紹所述,Gintronic 旨在“在習慣性地使用程式碼時使您的眼睛疲勞……並且具有靈快和非技術性的特徵。

這種字型讓我非常喜歡,迫不及待地想嘗試一下。

此外,一個小鳥(設計師本人)告訴我,一個新的、更新版本的 Gintronic(有一個新名稱)正在開發中,應該很快就會推出。


Array Mono

Bringing a touch of unconventionality and DIY aesthetic to a monospace font, Array Mono makes for a lively coding experience.

For some crazy reason, the designer James Hultquist-Todd wanted to try and combine classic, Renaissance type styles with a monospace. Honestly, I barely understand what that means but, you know what? I think it might actually work.

Favorite Characters: T, g, %, r, and E

Array Mono 為等寬字型帶來了一些非常規和 DIY 的美感,給予了生動的編碼體驗。

出於某種瘋狂的原因,設計師 James Hultquist-Todd 想嘗試將經典的文藝復興時期風格與等寬字型相結合。

老實說,我幾乎不明白這是什麼意思,但是,你知道嗎?我認為它可能真的有效。


Arnold

I’m a big fan of Future Fonts. It’s a great place for designers to have an idea, get it out into the world, and see how people react. One of the gems on there is Arnold by Rüdiger.

Designer Philipp Neumeyer admits, “Arnold was never conceived as a generic coding font featuring meticulously calculated width to save screen space or to be exceptionally readable. Arnold is what it is; kind of strange, but also fun.” Personally, I love it and think it’s great.

Favorite Characters: r, f, italic T, I, and l

我是 Future Fonts 的忠實粉絲。這是設計師提出想法、將其推向世界並瞭解人們如何反應的好地方。

那裡的傑出作品之一是 Rüdiger 的 Arnold。設計師 Philipp Neumeyer 承認,“Arnold 從未被設想為一種通用編碼字型,其具有精心計算的寬度以節省螢幕空間或具有出色的可讀性。阿諾德就是這樣;有點奇怪,但也很有趣。”

就個人而言,我喜歡它並認為它很棒。


Cartograph

Subtly-rounded characters give Cartograph its own human touch and nice visual appeal on screen. The playful italic characters with cursive forms bring further distinction and personality when used for coding.

With reasonable pricing and generous license terms for both desktop and webfonts, this is certainly a typeface worth checking out.

Favorite Characters: a, ,, italic i, s, and f

巧妙圓潤的字元賦予 Cartograph 自己的人性化觸感和良好的螢幕視覺吸引力。

當用於編碼時,帶有草書形式的俏皮斜體字元帶來了進一步的區別和個性。

憑藉桌面和網路字型的合理定價和慷慨的許可條款,這無疑是一種值得一試的字型。


Input Narrow Mono

Input Mono was my font of choice for coding (before switching to Operator Mono) and is such a great typeface. The beauty of Input Mono is the customization options available to you, the user—and all for free! Choose from four different widths, multiple styles, and character defaults.

I highly suggest giving Input a try and the fact that it is made by one of the nicest people in the type industry is simply icing on the cake. Make sure to click the “Customize your download” on this page to get exactly what you want.

Favorite Characters: a, r, g, 1, and y

Input Mono 是我選擇的編碼字型(在切換到 Operator Mono 之前),它是一種很棒的字型。Input Mono 的美妙之處在於你可以使用自定義選項——而且都是免費的!從四種不同的寬度、多種樣式和字元預設值中進行選擇。

我強烈建議嘗試一下 Input,它是由字型行業中最好的人之一製作的,錦上添花。

請務必單擊 此頁面 上的“自定義下載”以獲取您想要的內容。


Logic Monospace & Script

Leaning into the “technical” look of monospaced fonts, Logic Monospace and Monoscript brings life and warmth to the screen. Inspired by Advocate for the IBM Selectric and the ubiquitous Courier, it has the visual appearance of a screenwriter’s script.

Logic Monoscript is especially fun; as it claims to be one of a few connecting monospace scripts in existence and brings such a unique feeling to comments in code.

Favorite Characters: g, E, r, script T, e, l, and r

藉助等寬字型的“技術”外觀,Logic Monospace and Monoscript 為程式碼帶來生機和溫暖。

受 Advocate for the IBM Selectric 和無處不在的 Courier 的啟發,它具有編劇劇本的感覺。Logic Monoscript 特別有趣;聲稱是現有的少數連線等寬指令碼之一,為程式碼中的註釋帶來了獨特的感覺。


GT Maru Mono

As a member of the large Maru family, GT Maru Mono allows code to have a little fun. Rounded, playful, and quirky characters—apparently inspired by the English letterforms found in Japanese signage—still fit into the strict monospaced grid but with a bit of style.

The italics are simply oblique forms—rather than fully-italic—which is either a positive or negative, depending on your personal preference, but I hope by this point in the post, you have an opinion!

Favorite Characters: g, M, W, and 1

GT Maru Mono 作為 Maru 大家族的一員,讓程式碼可以有一點樂趣。

圓潤、俏皮和古怪的字元——顯然受到日本標牌中英文字母形式的啟發——仍然適合嚴格的等寬網格,很是獨特。

斜體只是斜體形式——而不是全斜體——是好是壞,取決於你的個人喜好


Monoflow

The final typeface in this post has an interesting goal: “To significantly improve the readability and aesthetics of monospace typefaces.” Monoflow does this by what the designers call “contextual repositioning,” which means that it automatically adjusts the individual letter spacing as you type.

Obviously, monospace fonts are defined by their fixed width, but Monoflow repositions characters inside of those fixed widths to make the “color” of your text more visually appealing. It is an interesting idea and I hope more people play with this idea in the future.

Favorite Characters: l, r, g, 4, italic x, y, and z

這篇文章最後一個字型有一個有趣的目標:“顯著提高等寬字型的可讀性和美感。”

Monoflow 通過設計師所說的“上下文重新定位”來做到這一點,這意味著它會在您鍵入時自動調整單個字母間距

顯然,等寬字型是由它們的固定寬度定義的,但 Monoflow 重新定位這些固定寬度的 字元,以使文字的“顏色”更具視覺吸引力。

這是一個有趣的想法,希望將來有更多的人試試這個想法。