pragmatapro
pragmatapro copied to clipboard
Non "Mono" PragmataPro not showing up in gvim.exe
Using the latest 8.1 gvim.exe release, PragmataPro fonts (not the Mono versions) don't even show up in the gvim.exe font picker. I believe I read somewhere that gvim.exe requires that every character be marked as monospace for the whole font to be considered fixed width and thus become available in the font picker. Without being available in the font picker, the font is not usable on gvim.exe.
The monospace forms work great (and ligatures too with the right gvim settings).
Hi Jordan,
This is a known issue. The primary reason Pragmata is offered in monospace is to provide a fallback for such cases:
@jordwalke how did you get ligatures working?
@Porges there's some render options you can tweak in gvim.exe. Tons of combinations, and you have to try them until it looks good and performs well.
@fabrizioschiavi
Couldn't you make it so that the non-monospaced fonts are considered monospace-but-with-ligatures? So imagine if you have a text file with one of those double-wide glyphs, followed by a space. You could create ligatures for every "double-wide-followed-by-space" so that it renders the double-wide glyph as a ligature. That way, it will work in far more editors.
@jordwalke It seems you have found the right idea and it seems works. I need to test a lot before to say "victory" anyway but thank you!
@fabrizioschiavi wow, that is exciting! Let me know if you want anyone to test this on Windows gvim.exe etc (message me on Twitter).
@fabrizioschiavi One thing that I don't understand. In Windows gvim.exe, with PragmataPro Mono+Liga, there are some glyphs which take up two characters are not broken and they render fine.
Can't you just make the Mono version of the font which designates every glyph as being monospace, but somehow "runs over" two characters as the ones in the screenshot do? Those glyphs shown are not PragmataPro specific ones - yet they work. Can you make PragmataProMono that does whatever those glyphs do?
Those look like it's falling back to another font (Segoe Ui Emoji).
@porges yes, so if it's accomplishing double wide rendering in a font marked as fixed width, then why cannot PragmataProMonoLiga?
I can't even select the mono version in gvim windows.
With these settings I get the font working: (without ligatures)
set renderoptions=type:directx
set encoding=utf-8
set guifont=PragmataPro\ Mono\ Liga:h12
Without the first 2 settings I get the font in italic.
This is the vim I installed: https://github.com/vim/vim-win32-installer/releases/download/v8.1.0578/gvim_8.1.0578_x64-mui2.exe
font version 0.827