This commit is contained in:
Nathan Walker
2025-07-14 11:18:48 -07:00
parent e02304229a
commit b2cfc8045b
2 changed files with 1 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@nativescript/core",
"version": "9.0.0-alpha.5",
"version": "9.0.0-alpha.6",
"description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
"type": "module",
"main": "index",

View File

@ -147,7 +147,6 @@ function getNativeFontWeight(fontWeight: FontWeightType): number {
export namespace ios {
export function registerFont(fontFile: string) {
console.log('registerFont knownFolders.currentApp().path: ' + knownFolders.currentApp().path);
let filePath = path.join(knownFolders.currentApp().path, FONTS_BASE_PATH, fontFile);
if (!File.exists(filePath)) {
filePath = path.join(knownFolders.currentApp().path, fontFile);
@ -163,8 +162,6 @@ export namespace ios {
throw new Error('Could not load font from: ' + fontFile);
}
console.log('registerFont filePath:', filePath);
const error = new interop.Reference<NSError>();
if (!CTFontManagerRegisterGraphicsFont(font, error)) {
if (Trace.isEnabled()) {
@ -182,8 +179,6 @@ function registerFontsInFolder(fontsFolderPath) {
return true;
}
// @ts-ignore
console.log(`registerFontsInFolder, Registering font: ${fileEntity.name}, extension: ${fileEntity.extension}`);
if (fileEntity instanceof File && (fileEntity.extension === 'ttf' || fileEntity.extension === 'otf')) {
ios.registerFont(fileEntity.name);
}