title: How to get the font script type from the font
body: <p>I am using harfbuzz to shape regional font and this is my current code.</p>
  <pre><code>HBShaper2(const string&amp; fontFile, FreeTypeLib* lib, int fontSize);
  FreeTypeLib lib;
  HBShaper2 hindiShaper(&quot;C:\\Windows\\Fonts\\mangal.ttf&quot;, &amp;lib, (int)fontSize);
  
  typedef struct {
      std::string data;
      std::string language;
      hb_script_t script;
      hb_direction_t direction;
      const char* c_data() { return data.c_str(); };
  } HBText2;
  
  HBText2 hbt5 = {
           stdstrTxt.c_str(),
           &quot;hi&quot;,
           HB_SCRIPT_DEVANAGARI, // How to get this value of the font
           HB_DIRECTION_LTR
      };
  </code></pre>
  <p>Currently i am manually setting the hb_script_t value in the code.</p>
  <p>How can i get this value of the font ?</p>