Skip to content

Commit

Permalink
Add Nanum font
Browse files Browse the repository at this point in the history
  • Loading branch information
hifiberry committed Apr 10, 2024
1 parent a77b711 commit 63564ff
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
3 changes: 1 addition & 2 deletions buildroot/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/enable-vc4kms/Config.in"
source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/hifiberry-psplash/Config.in"
source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/hifiberry-weston/Config.in"
source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/hifiberry-localbrowser/Config.in"


source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/nanumfont/Config.in"

comment "Libraries"
#source "$BR2_EXTERNAL_HIFIBERRY_PATH/package/caps/Config.in"
Expand Down
1 change: 1 addition & 0 deletions buildroot/package/hifiberry-localbrowser/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ config BR2_PACKAGE_HIFIBERRY_LOCALBROWSER
select BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND
select BR2_PACKAGE_WAFFLE_SUPPORTS_GBM
select BR2_PACKAGE_WEBP_DEMUX
select BR2_PACKAGE_NANUMFONT


8 changes: 8 additions & 0 deletions buildroot/package/nanumfont/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
config BR2_PACKAGE_NANUMFONT
bool "nanumfont"
help
NanumGothicCoding font package

This package downloads the NanumGothicCoding font from GitHub
and installs it

23 changes: 23 additions & 0 deletions buildroot/package/nanumfont/nanumfont.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
NANUMFONT_VERSION = 2.5
NANUMFONT_SITE = https://github.com/naver/nanumfont/releases/download/VER$(NANUMFONT_VERSION)
NANUMFONT_SOURCE = NanumGothicCoding-$(NANUMFONT_VERSION).zip
NANUMFONT_SITE_METHOD = wget

# Define extraction directory
NANUMFONT_EXTRACT_DIR = $(BUILD_DIR)/nanumfont-$(NANUMFONT_VERSION)

define NANUMFONT_EXTRACT_CMDS
unzip $(DL_DIR)/nanumfont/$(NANUMFONT_SOURCE) -d $(@D)
endef

define NANUMFONT_BUILD_CMDS
# No build commands required
endef

define NANUMFONT_INSTALL_TARGET_CMDS
$(INSTALL) -d $(TARGET_DIR)/usr/share/fonts/NanumFont
cp -r $(NANUMFONT_EXTRACT_DIR)/* $(TARGET_DIR)/usr/share/fonts/NanumFont
ls -lR $(TARGET_DIR)/usr/share/fonts/NanumFont
endef

$(eval $(generic-package))

0 comments on commit 63564ff

Please sign in to comment.