<commit_before>#ifndef _BUILD_NATIVE_TEXT_MEASURER_EMBED_H_
#define _BUILD_NATIVE_TEXT_MEASURER_EMBED_H_

#include "../js_internal/js_base.h"
#include "./PointerEmbed.h"

using namespace NSJSBase;
class CTextMeasurerEmbed : public CJSEmbedObject
{
public:
    CTextMeasurerEmbed()
    {
    }
    ~CTextMeasurerEmbed()
    {
    }

public:
    JSSmart<CJSValue> FT_Malloc(JSSmart<CJSValue> typed_array_or_len);
    JSSmart<CJSValue> FT_Free(JSSmart<CJSValue> pointer);

    JSSmart<CJSValue> FT_Init();
    JSSmart<CJSValue> FT_Set_TrueType_HintProp(JSSmart<CJSValue> library, JSSmart<CJSValue> tt_interpreter);

    JSSmart<CJSValue> FT_Open_Face(JSSmart<CJSValue> library, JSSmart<CJSValue> memory, JSSmart<CJSValue> size, JSSmart<CJSValue> face_index);
    JSSmart<CJSValue> FT_Open_Face2(JSSmart<CJSValue> library, JSSmart<CJSValue> array, JSSmart<CJSValue> face_index);<commit_msg>Fix for native editors (ios/android)<commit_after>#ifndef _BUILD_NATIVE_TEXT_MEASURER_EMBED_H_
#define _BUILD_NATIVE_TEXT_MEASURER_EMBED_H_

#include "../js_internal/js_base.h"
#include "./PointerEmbed.h"

#if defined(__ANDROID__) || defined(_IOS)
#define SUPPORT_HARFBUZZ_SHAPER
#endif

using namespace NSJSBase;
class CTextMeasurerEmbed : public CJSEmbedObject
{
public:
    CTextMeasurerEmbed()
    {
    }
    ~CTextMeasurerEmbed()
    {
    }

public:
    JSSmart<CJSValue> FT_Malloc(JSSmart<CJSValue> typed_array_or_len);
    JSSmart<CJSValue> FT_Free(JSSmart<CJSValue> pointer);

    JSSmart<CJSValue> FT_Init();
    JSSmart<CJSValue> FT_Set_TrueType_HintProp(JSSmart<CJSValue> library, JSSmart<CJSValue> tt_interpreter);

    JSSmart<CJSValue> FT_Open_Face(JSSmart<CJSValue> library, JSSmart<CJSValue> memory, JSSmart<CJSValue> size, JSSmart<CJSValue> face_index);
    JSSmart<CJSValue> FT_Open_Face2(JSSmart<CJSValue> library, JSSmart<CJSValue> array, JSSmart<CJSValue> face_index);
{'fraction_non_alphanumeric': 0.10335641981885989, 'fraction_numerical': 0.0010655301012253596, 'mean_word_length': 6.760330578512397, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3866044', 'n_tokens_mistral': 777, 'n_tokens_neox': 753, 'n_words': 105}