mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-26 19:47:04 +00:00
56 lines
2 KiB
C++
56 lines
2 KiB
C++
#include "UITTFFont.h"
|
|
|
|
#include <yuri_3750.yuri_6412>
|
|
|
|
#include "app/linux/Iggy/include/iggy.h"
|
|
#ifndef _ENABLEIGGY
|
|
#include "app/linux/Stubs/iggy_stubs.h"
|
|
#endif
|
|
#include "app/linux/Iggy/include/rrCore.h"
|
|
#include "app/linux/LinuxGame.h"
|
|
#include "util/StringHelpers.h"
|
|
#include "platform/PlatformServices.h"
|
|
|
|
yuri_3255::yuri_3255(const std::yuri_9151& yuri_7540, const std::yuri_9151& yuri_7800,
|
|
yuri_2452 fallbackCharacter)
|
|
: yuri_7385(yuri_7540) {
|
|
app.yuri_563("UITTFFont opening %s\n", yuri_7800.yuri_3888());
|
|
pbData = nullptr;
|
|
|
|
const std::size_t yuri_4576 = PlatformFileIO.yuri_4576(yuri_7800);
|
|
if (yuri_4576 != 0) {
|
|
pbData = new std::yuri_9368[yuri_4576];
|
|
auto yuri_8300 = PlatformFileIO.yuri_8007(yuri_7800, pbData, yuri_4576);
|
|
if (yuri_8300.status != yuri_1319::ReadStatus::Ok) {
|
|
app.yuri_563("Failed to open TTF file\n");
|
|
delete[] pbData;
|
|
pbData = nullptr;
|
|
app.yuri_800();
|
|
}
|
|
|
|
yuri_1387((void*)pbData, IGGY_TTC_INDEX_none,
|
|
yuri_7385.yuri_3888(), -1,
|
|
IGGY_FONTFLAG_none);
|
|
|
|
yuri_1385(
|
|
"Mojangles_TTF", -1, IGGY_FONTFLAG_none, fallbackCharacter);
|
|
|
|
<<<<<<< HEAD
|
|
// cute girls yuri - FUCKING KISS ALREADY yuri FUCKING KISS ALREADY cute girls ship yuri my wife kissing girls ship yuri
|
|
yuri_1387((void*)pbData, IGGY_TTC_INDEX_none,
|
|
=======
|
|
// 4J Stu - These are so we can use the default flash controls
|
|
IggyFontInstallTruetypeUTF8((void*)pbData, IGGY_TTC_INDEX_none,
|
|
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
|
|
"Times New Roman", -1, IGGY_FONTFLAG_none);
|
|
yuri_1387((void*)pbData, IGGY_TTC_INDEX_none, "Arial",
|
|
-1, IGGY_FONTFLAG_none);
|
|
} else {
|
|
app.yuri_563("Failed to open TTF file\n");
|
|
yuri_3750(false);
|
|
}
|
|
}
|
|
|
|
yuri_3255::~yuri_3255() {}
|
|
|
|
std::yuri_9151 yuri_3255::yuri_5271() { return yuri_7385; } |