-
Notifications
You must be signed in to change notification settings - Fork 184
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
DirectWrite support with selection of hinting mode #430
Comments
Original comment by |
I'll try to do it! |
Great proposal! I had checked myself and found the API to be so specific that someone enthusiastic about this issue is needed to do it... |
Ok, I'll take a look too |
I'd rather use Uniscribe which does not seem to have an API as insane as DirectWrite and may be supporting sufficient rendering features. |
Released Uniscribe support in 2.7.1. |
@mintty is Uniscribe Support more Emoji or Color Font ? On Windows 10 1607 ,DirectWrite Support color fonts and more font set |
Not sure what you mean. Emojis are displayed if they are included in your font, or in a fallback font that Windows finds via Uniscribe. I don't think Uniscribe supports colour fonts. |
@mintty I suggest mintty use DirectWrite. |
Which benefit would DirectWrite have that Uniscribe cannot offer (other than fancy colour icons which are not really a traditional terminal feature)? |
Ligatures and a more user friendly experience when trying to do things like powerline... |
@nelix, you are addressing quite different issues; for DirectWrite, my previous question still remains unanswered; ligature support could be added without it if only I knew how to get at the font ligature information; and powerline is a completely different thing, it's about character width handling and has been discussed elsewhere. |
@fcharlie: The current repository upload provides full emoji support. |
@mintty Good news, once I have the time, I'll test it. |
Please check the wiki/Tips.md file from the repository for advice how to deploy actual emoji data. |
@mintty Good. That little flag looks wider than the others? |
The width of an emoji is determined by the defined widths of its component characters, so it may actually have any width between 1 and 8 character cells. Also depends on option |
To tweak the resulting stretching effect, there is also option |
@mintty Thanks. |
@fcharlie, do you have an idea where the actual emoji data are stored in Windows? |
@mintty Sorry, I don't known. But You can set the Emoji font to Segoe UI. But the GDI rendering Emoji has no Right Direct2D: That's why I suggest you use direct2d rendering. |
At small sizes, everything will eventually look blurry... |
How about |
The same |
The echo format was just about the test case to write the same output. |
SVG Support Windows 10 Creators Update or Later and Direct2D only |
Mintty currently displays emojis using image functions, not via a font. |
Released 2.8.4 with full emoji support. |
As I switched from Ubuntu/Terminator to Windows/ConEmu to Windows/mintty I kept wondering why the rendering looked off in mintty. Then I discovered that mintty supports both GDI and Uniscribe, but not DirectWrite, which would explain why it renders text so differently compared to other software. Same font sizes are rendered differently and letter spacing in particular looks odd. |
Fixed-width display of characters is even by the nature of a cell-based terminal, not odd :) |
Actually, this might have something to do with size calculation. It's almost as if mintty uses smaller cells than glyph size from the settings and it squishes the characters together a bit to compensate - does this make any sense? I will have to play around with this a bit once I have the time. ConEmu calculates sizes differently (try setting 18 there and in mintty) so it might just be that the equivalent of 18 in ConEmu is something like 13.4 in mintty, which can't be set anywhere outside of Sublime Text as far as I know. |
Mintty does not "squish" characters. Unless you use option |
Missing the point of your comment (please clarify your intent), let me note this: |
... which failed to install for me too, a while ago; and I'm certainly not going to open something as suspicicious as a "Telegram link". |
OK, that font is installed already (had forgotten); the problem is a failed Windows design decision, at the cost of developers. When they introduced color fonts, they should have been made available for all font APIs but rather they are only available with the by far most complex of those APIs, which does not foster the usage of color fonts. |
Original issue reported on code.google.com by
nsho...@gmail.com
on 11 Jun 2014 at 9:38The text was updated successfully, but these errors were encountered: