Code blocks. Apps have to conform to language code blocks, mainly Unicode for Latin languages, or the apps would be completely impossible to develop and use. Code blocks do not exclude monospace font-families used extensively to write in code languages like Python and PHP. In it’s Preferences.sublime-settings-User file, Sublime Text Version 3.0 Build 3143 provides font-settings:
"font_face": "Menlo",
"font_options": "gray_antialias",
"font_size": 16,
"theme_font_options": "gray_antialias",
Now, font options are not handled in similar fashion by core Sublime services: some options have double quotes, some have no quotes, some oddly repeat (almost?) identical functionality. All forgoing is simply to say, my request is not a simple programming fix, but very likely a major upgrade, as language code blocks are the foundation of all that is [digital].
Menlo for my 2017 macOS machine comes with four monospace typefaces that I am fond of.
- Menlo Regular
- Menlo Italic
- Menlo Bold
- Menlo Bold Italic
Menlo typeface variants cannot be used in current Sublime Text build. These four fonts each have unique characters and glyphs, profiles and registrations and licensing plus tons more. In most text editors swapping font in code view is possible, but catatonically invokes global typeface change, as only one typeface can be used at a time. More expensive editors (e.g., Dreamweaver) may allow to use all my Menlo variants in one code document. But this in not easily accomplished, if Sublime is to implement it.
Each typeface has its own unique display field. Type a paragraph of Menlo Regular, and all the lines are evenly spaced. Make one word on one line in the middle of the paragraph Bold and the line containing Bold pushes lines above up 1pt, and pushes lines below down 1pt. When Dreamweaver implemented code view typeface customization, years of trouble-shooting ensued. That is not to say Sublime Python is anything like Dreamweaver C++. Just pointing out that using font variants (typefaces) in Sublime’s perpetual code view is not a simple implementation.
However, Menlo “font” does offer developers the opportunity to deploy multiple Menlo “typefaces”. Typeface “variants” such as Menlo Bold allow alteration of default Menlo Regular. Variants can transcend code technologies in a document to indicate a combined purpose transcending technologies. For Menlo with four typefaces, four unique systems of code identification can be provided. Presently, Microsoft and Apple both provide Courier New and another font-family with four typeface variants in each of multiple system monospace families. Sublime’s typographic technology is falling behind market provision. Sublime’s code environment is consequently reduced in value and performance capability.
It would be greatly appreciated if Sublime can add the ability to use multiple monospace typefaces, where those typefaces belong to the one font-family indicated in Preferences.sublime-settings-User “font_face”. At a future date, multiple monospace font-families will extend Sublime technologies.