feat(ocr,form-creator): Add comprehensive font support and TypeScript type definitions

- Add @pdf-lib/fontkit dependency for enhanced font rendering capabilities
- Create font-mappings.ts configuration with language-to-font-family mappings for 100+ languages
- Implement font-loader.ts utility for dynamic font loading from CDN sources
- Add TypeScript type definitions for form-creator, OCR, and general application types
- Create types/index.ts as centralized type exports
- Remove hidden-on-touch CSS class and update shortcuts button styling for better accessibility
- Update OCR text layer rendering to support multilingual font families
- Enhance form-creator with improved font handling for international text
- Update txt-to-pdf with font support for diverse character sets
- Migrate fileHandler to support new font loading workflow
- Update main.ts and ui.ts to integrate new type system and font utilities
- Update form-creator.html page with enhanced font configuration UI
This commit is contained in:
abdullahalam123
2025-12-03 23:13:14 +05:30
parent f213d9dc27
commit 649aec046d
16 changed files with 1220 additions and 241 deletions

View File

@@ -568,20 +568,6 @@ button:disabled,
background: #6b7280;
}
/* Hide elements on touch devices */
@media (pointer: coarse) {
.hidden-on-touch {
display: none !important;
}
}
/* Also hide on very small screens just in case */
@media (max-width: 640px) {
.hidden-on-touch {
display: none !important;
}
}
/* Scroll to Top Button Visibility */
#scroll-to-top-btn.visible {
opacity: 1;