Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Font file imports give MIME type: `""` (blank string)

オープン
#186 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript
領域
frontend

調査の方向性

まず importFile() のエントリーポイントと、Windows でブラウザーのインポートがファイルタイプを判定する仕組みを追跡します。Chrome で TTF のインポートを再現し、空の MIME タイプと FontAsset の作成パスを調べます。TTF ファイルが、サポートされていないファイルタイプのエラーを発生させる代わりに、使用可能な FontAsset オブジェクトを作成できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug
It seems that font imports fail on Windows platforms. I have noticed that the software reports:

importFile(): Could not import file google.ttf, filetype: "" is not supported.

To reproduce
Steps to reproduce the behavior:

  1. Click and try to import a TTF file using the OS and browser
  2. See vague error (could not import FILENAME)
  3. Open the console
  4. See error

Expected behavior
A FontAsset should be created and the font should be usable.

Screenshots
Image

Editor version
Both 1.19.4 and 1.19.3 have the same issue.

Device

  • Hardware: PC
  • OS: Windows 11
  • Browser: Chrome
  • Version: 151.0.7922.108 (Official Build) (64-bit)

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
Maybe we should add filename-based extension checks.

Additional context
This has been discussed on the forums.

主要言語
JavaScript
スター
53
フォーク
22
平均マージ
2日 10時間
マージ済み PR(30日)
12

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Candlestickers/Candlestick のほかの issue

Candlestickers/Candlestick の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。