fabrizioschiavi / pragmatapro

PragmataPro font is designed to help pros to work better
https://www.fsd.it/shop/fonts/pragmatapro/
1.41k stars 40 forks source link

Non "Mono" PragmataPro not showing up in gvim.exe #116

Open jordwalke opened 5 years ago

jordwalke commented 5 years ago

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).

kelas commented 5 years ago

Hi Jordan,

This is a known issue. The primary reason Pragmata is offered in monospace is to provide a fallback for such cases:

image

Porges commented 5 years ago

@jordwalke how did you get ligatures working?

jordwalke commented 5 years ago

@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.

jordwalke commented 5 years ago

@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.

fabrizioschiavi commented 5 years ago

@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!

jordwalke commented 5 years ago

@fabrizioschiavi wow, that is exciting! Let me know if you want anyone to test this on Windows gvim.exe etc (message me on Twitter).

jordwalke commented 5 years ago

@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.

glyphs

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?

Porges commented 5 years ago

Those look like it's falling back to another font (Segoe Ui Emoji).

jordwalke commented 5 years ago

@porges yes, so if it's accomplishing double wide rendering in a font marked as fixed width, then why cannot PragmataProMonoLiga?

roelandxyz commented 5 years ago

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