Files
pdf/engine/src/fonts/cache/glyph_bitmap.hpp
T

17 lines
624 B
C++

#pragma once
#include <vector>
namespace pdfengine::fonts {
struct GlyphBitmap {
std::vector<unsigned char> pixels; // 8-bit grayscale pixels (0 = transparent, 255 = fully opaque)
int width = 0; // Width of the glyph bitmap in pixels
int height = 0; // Height of the glyph bitmap in pixels
int bearingX = 0; // Horizontal bearing X (bitmap_left) in pixels
int bearingY = 0; // Horizontal bearing Y (bitmap_top) in pixels
double advance = 0.0; // Horizontal advance in pixels
};
} // namespace pdfengine::fonts