diff --git a/Sources/QDS/Foundation/Typography/Pretendard+Ext.swift b/Sources/QDS/Foundation/Typography/Pretendard+Ext.swift index ff0119d..2ad73ff 100644 --- a/Sources/QDS/Foundation/Typography/Pretendard+Ext.swift +++ b/Sources/QDS/Foundation/Typography/Pretendard+Ext.swift @@ -4,14 +4,11 @@ extension QvickFont.Pretendard: QvickFont.CanDefine { public static func register() { QvickFont.Pretendard.allCases.forEach { - guard let fontURL = Bundle.module.url( - forResource: $0.name, - withExtension: "ttf" - ), - let fontDataProvider = CGDataProvider(url: fontURL as CFURL), - let font = CGFont(fontDataProvider) else { return } - var error: Unmanaged? - CTFontManagerRegisterGraphicsFont(font, &error) + guard let asset = NSDataAsset(name: $0.name, bundle: .module), + let provider = CGDataProvider(data: asset.data as NSData), + let font = CGFont(provider) else { return } + + CTFontManagerRegisterGraphicsFont(font, nil) } }