Hi Khaled, I did a quick debug through that part of HarfBuzz and it seems it's doing lookups and never gets to the random code. Tomorrow I'll try to put something together, would a link to a screen shot and font be sufficient for starters?
Thanks! Ales On Wed, Feb 12, 2020 at 7:42 PM Khaled Hosny <dr.khaled.ho...@gmail.com> wrote: > Depends on how the font is doing the randomization, using contextual > lookups (most likely) or rand feature (less likely as this does not > basically work outside of HarfBuzz and few other less common applications). > > We would need to see the font and specific examples with output of both to > form any meaningful opinion. > > Regards, > Khaled > > > On Feb 12, 2020, at 8:15 PM, Aleš Mlakar <ales.amb...@gmail.com> wrote: > > > > Hi Nikolay, > > I have a font "Daft Brush" for example, and if I write "gggggggggg" I > get 4 different glyphs "randomized", and the result is different in > Indesign and in my own application with Harfbuzz. > > So my question is, who is doing it wrong, Indesign or Harfbuzz, or > neither and is actually implementation defined. > > > > Best, > > Ales > > > > On Wed, Feb 12, 2020 at 7:01 PM Nikolay Sivov <bungleh...@gmail.com> > wrote: > > > > > > On Wed, Feb 12, 2020 at 8:58 PM Aleš Mlakar <ales.amb...@gmail.com> > wrote: > > Hey all, > > I've been trying to mimic font shaping in Adobe Indesign with Harfbuzz, > most of it works great, but when random/alternate glyphs (for the fonts > that have multiple glyphs for the same code point) are used it's not even > remotely similar anymore. > > > > Sooo my question is basically this - is there any standard for glyph > randomization or is this application controlled? > > > > If you're talking about alternate forms features and the like, > application usually controls whether feature is enabled or not. The output > of the feature is determined by font data, and shaping logic obviously. > It's not random, if we're talking about the same thing. > > > > > > Thanks! > > > > Regards, > > Ales > > > > _______________________________________________ > > HarfBuzz mailing list > > HarfBuzz@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/harfbuzz > > > > > > -- > > Aleš Mlakar, > > Programmer/Consultant > > am.bits > > _______________________________________________ > > HarfBuzz mailing list > > HarfBuzz@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/harfbuzz > > -- Aleš Mlakar, Programmer/Consultant *am.bits*
_______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz