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
Initial commit
This commit is contained in:
33
arm9/source/themes/DefaultFontRepository.cpp
Normal file
33
arm9/source/themes/DefaultFontRepository.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user