blob: 75130e7306e775ee1e87664da2f8108104207bc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <set>
#include <string>
#include <mbgl/text/glyph.hpp>
#include <mbgl/text/font_store.hpp>
struct hb_font_t;
namespace mbgl {
namespace harfbuzz {
RequiredGlyphsForFont getGlyphIDs(const LocalFonts& fonts, const std::string& u8label);
std::vector<std::pair<char16_t,double>> getClusterWidths(hb_font_t* font, const std::u16string& u16text);
void applyShaping(hb_font_t* font, const std::u16string& u16text, std::vector<PositionedGlyph>& positionedGlyphs, float& current_x, float& current_y);
}
}
|