mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
PdfDraw: Developing color glyph support
This commit is contained in:
parent
5b634b8081
commit
dcf3117643
3 changed files with 220 additions and 167 deletions
|
|
@ -7,13 +7,16 @@ CONSOLE_APP_MAIN
|
|||
{
|
||||
PdfDraw pdf;
|
||||
int cy = 0;
|
||||
for(int face = Font::SERIF; face < Font::GetFaceCount(); face++) {
|
||||
pdf.DrawImage(5000, 20, 100, 100, CtrlImg::exclamation());
|
||||
// for(int face = Font::SERIF; face < Font::GetFaceCount(); face++)
|
||||
int face = 19;
|
||||
{
|
||||
Font fnt(face, 100);
|
||||
Cout() << fnt << "\n";
|
||||
LOG(face << ' ' << fnt << ", TTF: " << fnt.IsTrueType());
|
||||
String txt = AsString(fnt) + " 訓民正音 (훈민정음) 😜 🤪 ";
|
||||
pdf.DrawText(0, cy, txt, fnt, Black);
|
||||
pdf.DrawText(3000, cy, AsString(fnt), StdFont(100), Black);
|
||||
pdf.DrawText(3000, cy, AsString(fnt) << ' ' << face, StdFont(100), Black);
|
||||
cy += fnt.GetLineHeight();
|
||||
if(cy > 6000) {
|
||||
pdf.EndPage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue