Skip to content

DirectWrite support with selection of hinting mode #430

Closed

Description

@GoogleCodeExporter
Will be nice to have DirectWrite support, whiche give possibilty to select font 
hinting. This give fonts (mostly non-windows native) better feel.

Original issue reported on code.google.com by [email protected] on 11 Jun 2014 at 9:38

Activity

  1. gcollombet commented on Aug 4, 2015

    @gcollombet

    I'll try to do it!

  2. mintty commented on Aug 4, 2015

    @mintty
    Owner

    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?

  3. gcollombet commented on Aug 4, 2015

    @gcollombet

    Ok, I'll take a look too

  4. mintty commented on Jul 14, 2016

    @mintty
    Owner

    I'd rather use Uniscribe which does not seem to have an API as insane as DirectWrite and may be supporting sufficient rendering features.

  5. mintty commented on Dec 4, 2016

    @mintty
    Owner

    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.

  6. fcharlie commented on Jun 10, 2017

    @fcharlie

    @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

    emoji

  7. mintty commented on Jun 10, 2017

    @mintty
    Owner

    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.

  8. 19 remaining items

  9. mintty commented on Jan 24, 2018

    @mintty
    Owner

    How about echo -e '\U1F604' for a more intuitive test case?

  10. fcharlie commented on Jan 24, 2018

    @fcharlie

    The same echo -e '\U1F604' display is delayed. PNG emoji scaling without SVG or font effect。

  11. mintty commented on Jan 25, 2018

    @mintty
    Owner

    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.

  12. fcharlie commented on Jan 25, 2018

    @fcharlie

    SVG Support Windows 10 Creators Update or Later and Direct2D only

  13. mintty commented on Jan 25, 2018

    @mintty
    Owner

    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.

  14. mintty commented on Feb 6, 2018

    @mintty
    Owner

    Released 2.8.4 with full emoji support.

  15. pandasauce commented on Nov 25, 2019

    @pandasauce

    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.

  16. mintty commented on Nov 25, 2019

    @mintty
    Owner

    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.

  17. pandasauce commented on Nov 26, 2019

    @pandasauce

    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.

  18. mintty commented on Nov 26, 2019

    @mintty
    Owner

    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.

  19. mintty commented on Sep 21, 2021

    @mintty
    Owner

    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.

  20. mintty commented on Sep 22, 2021

    @mintty
    Owner

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

  21. mintty commented on Sep 23, 2021

    @mintty
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions