You've already forked pico-launcher
mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-01-09 16:28:48 -08:00
34 lines
882 B
C++
34 lines
882 B
C++
#include "common.h"
|
|
#include "NotoSansJP-Regular-10_nft2.h"
|
|
#include "NotoSansJP-Medium-7_5_nft2.h"
|
|
#include "NotoSansJP-Medium-10_nft2.h"
|
|
#include "NotoSansJP-Medium-11_nft2.h"
|
|
#include "DefaultFontRepository.h"
|
|
|
|
const nft2_header_t* DefaultFontRepository::GetFont(FontType fontType) const
|
|
{
|
|
switch (fontType)
|
|
{
|
|
case FontType::Regular10:
|
|
{
|
|
return (const nft2_header_t*)NotoSansJP_Regular_10_nft2;
|
|
}
|
|
case FontType::Medium7_5:
|
|
{
|
|
return (const nft2_header_t*)NotoSansJP_Medium_7_5_nft2;
|
|
}
|
|
case FontType::Medium10:
|
|
{
|
|
return (const nft2_header_t*)NotoSansJP_Medium_10_nft2;
|
|
}
|
|
case FontType::Medium11:
|
|
{
|
|
return (const nft2_header_t*)NotoSansJP_Medium_11_nft2;
|
|
}
|
|
default:
|
|
{
|
|
return nullptr;
|
|
}
|
|
}
|
|
}
|