-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free alternative to Operator Mono Italic Theme for VSCode #10
Comments
I have been working on a Theme based on One Dark with italic highlights instead of Oceanic Next, as I like the colors better. I use it with Operator Mono in Atom, and it works perfectly so far. Adapting it to use a combination of Fira Code and flottflott shouldn't be more complicated than to hard-code flottflott into the stylesheet and set Fira Code as Font Family in the settings. The only issue I see is that flottflott is not a monospace font. So far, I wasn't able to find a nice monospace cursive font that could adequately replace Operator Mono's italics. |
Cool. Couldn't you have both Operator Mono and Fira Code in the font-family? Making it .regularStyleHere {
font-family: "Operator Mono", "Fira Code", <UserSpecified>, Courier, monospace;
}
.italicStyleHere {
font-family: "Operator Mono", "flottflott", <UserSpecified>, Courier, monospace;
} |
Yes, of course. Thing is, according to the Atom guys it is best practice not to specify the font family in the stylesheet at all. The simple reason for this is that Atom allows you to specify the font family in the Settings: By overriding this setting in the stylesheet, you basically break this option. Unfortunately, it is currently not possible to specify different different font families in the settings for italic/regular code without editing the user's style sheet. I'm not sure how much of this also applies to VS Code. I was considering to create a font mashup between Fira Code and a nice cursive monospace font, i.e. adding cursive italics to Fira Code and bundling it as a single TTF file. Both Fira Code and flottflott are licensed under the OFL, which would likely allow that. But then again, flottflott is not monospace, which kind of sucks for programming... |
That's why I added I'm trying to find any other monospace signature style fonts now, but no luck for now. |
Not sure if it is possible to reference the user specified font family from the LESS style sheet. Do you have any references on how this could work? |
No, probably not. But depending on whether or not it should be supported it might be possible to make it as a plugin instead. But maybe that's too much? |
( psssst... there totally isn't a torrent out there which can easily be found via google ) |
@rozzzly I think this initiative which is all about Open Source, and respecting each others intellectual rights, shouldn't encourage pirating or breaking of licenses. |
@timosta I marked this as joined. Would be cool if you keep us updated if you make an open source alternative with a free font and link to it here. |
Will do. I'm currently experimenting with monospacing a non-mono script font. It's surprisingly hard to make it not look terrible. |
Interesting! One step better than a open source theme: an open source alternative to the font it self! |
I find Flottflott very difficult to read, and with it not being monospaced I'm surprised to see it recommended for use in code. What a mess. You'd think there would be monospaced script/cursive fonts out there, as apparently they used to make them for typewriters. I haven't had any luck finding one. The only free monospace font I've found with a decent italic (curved characters, not just slanted) is Ubuntu Mono: Not as much character as Operator Mono, but I find it more readable. Here it is in VS Code alongside Fira Code, which provides ligatures: For anyone who wants to give this a try, I've used the Custom CSS and JS extension for VS Code with this CSS:
|
I'm going to try the italic for a while and see if it helps with readability, or is just noise. 😄 |
@mikewheaton after follow your guide with Custom CSS and JS extension I got this in VS Code: The italic font still use Fira Code. this is no change apperance to Ubuntu Mono. |
@fajaryanw: I've seen that warning too, although it went away after a while. So far everything is working just fine so I suspect it's a false alarm. If you go to user settings, do you have this setting? (updated to your path, of course) If so, the next thing you can try is to bring up the command palette and run "Update Custom CSS and JS". That should refresh the styles. If it's still not working, try going to "Toggle Developer Tools" in the menu and inspect the elements to see if the CSS styles are possibly being overridden by another theme or something. |
@mikewheaton : Oh yeah ! I only missed one slash Thanks a lot :) |
@mikewheaton : after update VS Code version 1.9.0, the custom doesn't work anymore. The font still use Fira Code. no change apperance to Ubuntu Mono Italic. Do you experience the same thing ? |
@fajaryanw: Yes, it looks like the Custom CSS and JS loader extension is not working anymore. I've opened an issue here: be5invis/vscode-custom-css#8 |
Custom CSS and JS loader does appear to work with the CSS below. Maybe the CSS class names changed between releases? I dismissed the corrupt code warning as well. /* keywords */
.vs-dark .mtk15 {
font-family: 'Operator Mono';
font-size: 1.02em;
font-style: italic;
}
/* attributes */
.vs-dark .mtk5 {
font-family: 'Operator Mono';
font-size: 1.02em;
font-style: italic;
} |
can confirm @robmcguinness is right, it is working albeit with warning for corrupted code |
I use a combination of Fira Code and "Space Mono": It took some wiggling w/ |
@nemoDreamer That looks really nice, good combination. Could you share the setting? |
With pleasure, @robinpokorny! It's for Atom, not VSCode, but should be adaptable: (There's also "a Fantasque Sans Mono Italic" variation in there, if you toggle the comments, but I ended up going with something more subtle.) |
One huge difference being taking time describe how it’s done. This almost deserves a donation, IMO. @frenchtoast747 you should make a medium post about this, I would clap it. Many many times. Thank you! |
I've never written a Medium post before, @klippx. I might make this my first. Thanks! |
@frenchtoast747 That is awesome. I take it you have it working with Linux? I had an issue opened regarding Linux compatibility ... |
@kencrocken, with the above steps, everything appears to be working in Ubuntu. The example screenshot was taken with VSCode on Ubuntu 17.10. |
You can use https://github.com/cpitclaudel/monospacifier to adjust or turn any other font to the monospace settings of the target font. That way the modded font will have the same measures on both font styles. |
Hi, |
@josuedavidurand if you hover over a comment's date, you can copy/paste a direct link to it: That scheme looks very much like something that would be called "sea" or "forest" or "pale something or other"... 😜 It really looks delicious... It's like a subtle duotone, but with yellow added. |
thanks for the tip |
@josuedavidurand If I remember correctly, that is Behave Theme. |
@mikaelbr Yeay! That's it. thanks man. |
Has anyone found any alternatives to Script12 BT? I don't find it particularly easy to read and would rather find something that's more fancy italic rather than fully cursive like Operator Mono. Ubuntu Mono is the closest happy medium I've found so far. |
@christopherdwhite I use Croissant One. It works well for me |
I have created a font that uses FiraCode as main font and FlottFlott as italic. It should work in every editor. You can find it here: https://github.com/kosimst/FiraFlott |
I am thinking of "Fira Code"what do you guys think about it ? |
While the italics aren't as predominant (aka non-cursive) as in Operator Mono, IBM's Plex includes italics in its Mono typeface and as such works with the VSCode italic themes. |
Wow. The Plex Mono + Plex Mono Italic would kick ass if bundled together (as per @frenchtoast747 instructions above) |
Hi. You could also have a look at Victor Mono at rubjo.github.io/victor-mono and see if that’s something that works for you. :) |
But Script12 and Victor Mono don`t have available sources |
Does anyone know if this font is a combo too? Seems that it's custom made |
Looks like a mashup of two different fonts with little in common to me (different heights, too). |
Also, please check Hactor - a mashup between Hack and Victor Mono italic. In addition, this solved the selection shaking problem like this: |
thanks! i made this font |
Cascadia Code released a cursive version in June 2011. The cursive was unpopular (perhaps because it wasn't communicated ahead of time), so Microsoft toned it down in the next release, but the cursive version is still up on GitHub. You'll need to change some settings in VSCode to italicize your comments. StackOverflow has instructions on how to do that. |
Using FontForge, I merged some of the cursive glyphs from Cascadia Code (specifically: f, l, r, s) into my custom build of Iosevka. It's available for download at my iosevka-cursive repo, along with instructions on how I did it. |
Update: Solved by @kencrocken
Mashed two fonts together to get an Open Source variant of Operator Mono - https://github.com/kencrocken/FiraCodeiScript.
Project description
Operator Mono + Italic keywords in Atom has become a fairly popular combination, but for many the Operator Mono is quite expensive. But luckily, there are open and free alternatives we can use, but as of yet there aren't any ways to do this in Visual Studio Code (as far as I know. Hopefully, if there are, anyone let me know). We can fix this, though.
By combining the guide An alternative to Operator Mono font by Matthew McFarland and something like the Oceanic Next Italic theme it could work seamlessly (I hope).
Relevant Technology
Visual Studio Code, Atom, Syntax highlighting, tmTheme.
Who is this for
People who want to create and publish their own editor theme as free alternative and get a cool syntax highlight in the process. Should be fairly straight forward to copy/fork existing code and just use free font alternatives.
The text was updated successfully, but these errors were encountered: