You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DirectWrite support with selection of hinting mode #430
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...
How does this actually relate to #438? Is that part of DirectWrite or something different; could it be combined or is it an alternative?
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.
The echo format was just about the test case to write the same output.
Yes, emoji graphics are used in pixel format (png, jpg or gif would work too);
the MS API does not support loading SVG. Also most actual emoji data repositories provide PNG, not SVG.
Mintty currently displays emojis using image functions, not via a font.
See GdipLoadImageFromStream and GdipLoadImageFromFile in winimg.c.
I can check again whether those accept SVG now, so it could be used.
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.
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 ColSpacing, the font is configured to use the full cell width. Row width may be adjusted according to font information ("internal leading") which is a typographic advice that mintty properly follows.
The size comparison sounds like ConEmu uses pixel size while mintty uses point size (or "logical coordinate units" in Windows terms). Point size makes more sense as it scales with DPI.
Missing the point of your comment (please clarify your intent), let me note this:
Noto Color Emoji cannot be installed in Windows as a font, so how is its usage supposed to work?
DirectWrite is an utterly complex API (as is Uniscribe already). If you can demonstrate easy-to-use functions to render emojis from Emoji fonts, I'll gladly integrate them into mintty.
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.
Activity
gcollombet commentedon Aug 4, 2015
I'll try to do it!
mintty commentedon Aug 4, 2015
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...
How does this actually relate to #438? Is that part of DirectWrite or something different; could it be combined or is it an alternative?
gcollombet commentedon Aug 4, 2015
Ok, I'll take a look too
mintty commentedon Jul 14, 2016
I'd rather use Uniscribe which does not seem to have an API as insane as DirectWrite and may be supporting sufficient rendering features.
option UnderlineManual, Uniscribe support for left-to-right text (#573,
mintty commentedon Dec 4, 2016
Released Uniscribe support in 2.7.1.
I don't think DirectWrite would now still bring much value-add, so I'm closing this issue.
fcharlie commentedon Jun 10, 2017
@mintty is Uniscribe Support more Emoji or Color Font ?
On Windows 10 1607 ,DirectWrite Support color fonts and more font set
https://msdn.microsoft.com/en-us/library/windows/desktop/hh802480(v=vs.85).aspx
mintty commentedon Jun 10, 2017
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.
19 remaining items
mintty commentedon Jan 24, 2018
How about
echo -e '\U1F604'for a more intuitive test case?fcharlie commentedon Jan 24, 2018
The same
echo -e '\U1F604'display is delayed. PNG emoji scaling without SVG or font effect。mintty commentedon Jan 25, 2018
The echo format was just about the test case to write the same output.
Yes, emoji graphics are used in pixel format (png, jpg or gif would work too);
the MS API does not support loading SVG. Also most actual emoji data repositories provide PNG, not SVG.
fcharlie commentedon Jan 25, 2018
SVG Support Windows 10 Creators Update or Later and Direct2D only
mintty commentedon Jan 25, 2018
Mintty currently displays emojis using image functions, not via a font.
See
GdipLoadImageFromStreamandGdipLoadImageFromFilein winimg.c.I can check again whether those accept SVG now, so it could be used.
fix delay of Emoji display (mintty/wsltty#82, #600, ~#430, ~#671)
EmojiPlacement mode "full" (wsltty#82, #600, ~#671, ~#430)
mintty commentedon Feb 6, 2018
Released 2.8.4 with full emoji support.
pandasauce commentedon Nov 25, 2019
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.
mintty commentedon Nov 25, 2019
Fixed-width display of characters is even by the nature of a cell-based terminal, not odd :)
No idea how to interpret this fuzzy comment.
pandasauce commentedon Nov 26, 2019
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 commentedon Nov 26, 2019
Mintty does not "squish" characters. Unless you use option
ColSpacing, the font is configured to use the full cell width. Row width may be adjusted according to font information ("internal leading") which is a typographic advice that mintty properly follows.The size comparison sounds like ConEmu uses pixel size while mintty uses point size (or "logical coordinate units" in Windows terms). Point size makes more sense as it scales with DPI.
mintty commentedon Sep 21, 2021
Missing the point of your comment (please clarify your intent), let me note this:
Noto Color Emoji cannot be installed in Windows as a font, so how is its usage supposed to work?
DirectWrite is an utterly complex API (as is Uniscribe already). If you can demonstrate easy-to-use functions to render emojis from Emoji fonts, I'll gladly integrate them into mintty.
mintty commentedon Sep 22, 2021
... 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".
mintty commentedon Sep 23, 2021
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.