<div dir="ltr">Hi Khaled,<div>I did a quick debug through that part of HarfBuzz and it seems it's doing lookups and never gets to the random code.</div><div>Tomorrow
I'll try to put something together, would a link to a screen shot and font be sufficient for starters?</div><div><br></div><div>Thanks!</div><div>Ales</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 12, 2020 at 7:42 PM Khaled Hosny <<a href="mailto:dr.khaled.hosny@gmail.com">dr.khaled.hosny@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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).<br>
<br>
We would need to see the font and specific examples with output of both to form any meaningful opinion.<br>
<br>
Regards,<br>
Khaled<br>
<br>
> On Feb 12, 2020, at 8:15 PM, Aleš Mlakar <<a href="mailto:ales.ambits@gmail.com" target="_blank">ales.ambits@gmail.com</a>> wrote:<br>
> <br>
> Hi Nikolay,<br>
> 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.<br>
> So my question is, who is doing it wrong, Indesign or Harfbuzz, or neither and is actually implementation defined.<br>
> <br>
> Best,<br>
> Ales<br>
> <br>
> On Wed, Feb 12, 2020 at 7:01 PM Nikolay Sivov <<a href="mailto:bunglehead@gmail.com" target="_blank">bunglehead@gmail.com</a>> wrote:<br>
> <br>
> <br>
> On Wed, Feb 12, 2020 at 8:58 PM Aleš Mlakar <<a href="mailto:ales.ambits@gmail.com" target="_blank">ales.ambits@gmail.com</a>> wrote:<br>
> Hey all, <br>
> 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.<br>
> <br>
> Sooo my question is basically this - is there any standard for glyph randomization or is this application controlled?<br>
> <br>
> 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.<br>
> <br>
> <br>
> Thanks!<br>
> <br>
> Regards,<br>
> Ales<br>
> <br>
> _______________________________________________<br>
> HarfBuzz mailing list<br>
> <a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
> <br>
> <br>
> -- <br>
> Aleš Mlakar, <br>
> Programmer/Consultant<br>
> am.bits<br>
> _______________________________________________<br>
> HarfBuzz mailing list<br>
> <a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Aleš Mlakar, </div><div>Programmer/Consultant</div><div><b>am.bits</b></div></div></div></div></div>