<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Mangal;
        panose-1:2 4 5 3 5 2 3 3 2 2;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I am using Harfbuzz 1.7.6 for Indic languages in my application but failed to get correct result from hb_shape API for all MAC default Indic MT and MN fonts like- Devanagari MT and Devanagari Sangam MN fonts.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">e.g- Input buffer is-<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">   </span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">प</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">त</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">्</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">र</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">क</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ा</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">र</span><span lang="HI" style="font-size:12.0pt">  
</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">द</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ि</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">स</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ं</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ब</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">र</span><span lang="HI" style="font-size:12.0pt">  
</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">स</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">े</span><span lang="HI" style="font-size:12.0pt"> 
</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">म</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">य</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ा</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ं</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">म</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">ा</span><span lang="HI" style="font-size:12.0pt">+</span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">र</span><span lang="HI" style="font-size:12.0pt">
</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Resulting output is- <o:p></o:p></span></p>
<p class="MsoNormal"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_s1026" type="#_x0000_t75" style='position:absolute;margin-left:-16.5pt;margin-top:-113.25pt;width:189pt;height:26.25pt;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text'>
<v:imagedata src="cid:image001.png@01D46173.0779E7B0" o:title="" />
<w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width="252" height="35" src="cid:image001.png@01D46173.0779E7B0" align="left" hspace="12" v:shapes="Picture_x0020_1"><![endif]><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">whereas it should be like- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">     </span><span lang="HI" style="font-size:12.0pt;font-family:"Mangal","serif"">पत्रकार दिसंबर से मयांमार</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">It seems that issue is in glyph substitution and glyph positioning.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Similar issue is also in Chrome if we render the above text with these fonts but it is rendering fine in application like- MAC TextEdit</span><span style="font-size:12.0pt"> and Safari</span><span style="font-size:12.0pt">
 with these fonts.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Kindly suggest whether the issue is in hb_shape API or in the fonts or I have to do something at my end to get desire result.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Vijendra Singh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>