mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-05-23 13:03:33 +00:00
Compare commits
1 Commits
main
...
fix/bdf-fo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83df1de386 |
@@ -843,6 +843,14 @@ async function updateFontPreview() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BDF bitmap fonts cannot be rendered server-side — skip the API call
|
||||||
|
if (family.toLowerCase().endsWith('.bdf')) {
|
||||||
|
previewImage.style.display = 'none';
|
||||||
|
loadingText.style.display = 'block';
|
||||||
|
loadingText.textContent = 'Preview not available for BDF bitmap fonts';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Show loading state
|
// Show loading state
|
||||||
loadingText.textContent = 'Loading preview...';
|
loadingText.textContent = 'Loading preview...';
|
||||||
loadingText.style.display = 'block';
|
loadingText.style.display = 'block';
|
||||||
|
|||||||
Reference in New Issue
Block a user