[BUG] Font file imports give MIME type: `""` (blank string)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
まず importFile() のエントリーポイントと、Windows でブラウザーのインポートがファイルタイプを判定する仕組みを追跡します。Chrome で TTF のインポートを再現し、空の MIME タイプと FontAsset の作成パスを調べます。TTF ファイルが、サポートされていないファイルタイプのエラーを発生させる代わりに、使用可能な FontAsset オブジェクトを作成できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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:
- Click and try to import a
TTFfile using the OS and browser - See vague error (could not import FILENAME)
- Open the console
- See error
Expected behavior
A FontAsset should be created and the font should be usable.
Screenshots
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Candlestickers/Candlestick のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Candlestickers/Candlestick#255 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Candlestickers/Candlestick#240 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Candlestickers/Candlestick#239 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] frames with names lose their circle対応中かも @BaronAWC が 5 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Candlestickers/Candlestick#237 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Candlestickers/Candlestick#203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Candlestickers/Candlestick の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
saayam-for-all/webapp#1919 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Uuriko/project-room#3728 ·
メンテナーはふだん 1 日以内に返信
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
devops-thiago/ThrillhouseBot#1132 ·
メンテナーはふだん 1 日以内に返信