I'm trying to take my entire website offline via the HTML5 FileSystem api. So far, I have has no problems, except for the Roboto.woff2 font that I have gotten from Google's website. Basically I have a blob that writes to a file in persistent storage. However, whenever I try to load the actual page, the console says: Failed to decode downloaded font: filesystem:http://localhost/persistent/fonts/roboto.woff2 1 OTS parsing error: Size of decompressed WOFF 2.0 is set to 0. When I view the actual file in filesystem:http://localhost/persistent/fonts/, the file size is different as well. I suspect that it has to do with text/plain type. I've tried using application/x-font-woff, application/x-font-woff2, font/woff2, etc, but nothing has worked thus far. Any help would be appreciated!
Saving .woff2 fonts into html5 filesystem
582 Views Asked by Darrennchan8 At
1
There are 1 best solutions below
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in ENCODING
- how to turn characters in wrong codec into space in python?
- erlang os:cmd() command with UTF8 binary
- How to encode bytes as a printable unicode string (like base64 for ascii)
- weird characters in utf-8 encoded file
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- Detecting corrupt characters in UTF-8 encoded text file
- Why does opening a file in two different encodings work as expected?
- Is there any function like iconv in Python?
- Control encoding when parsing SPSS file using package memisc
- Escape XML on Windows Mobile 6
- MySQL php utf-8 format issues
- Can we convert ANSI encoded CSV file to utf-8 encoded file with javascript?
- How can I compress four floats into a string?
- Represent string as an integer in python
- Character encoding is missing at a point
Related Questions in FONTS
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- css font-family doesnt work on internet explorer
- How get to know what font family does anchor element use
- Firefox Windows / Linux inconstancies
- Using GLYPHICONS's free pngs with classes
- Java Swing: JLabel´s Text / Font shown incompletely
- Xib taking long time (>1s) to load. UIFont cache seems to blame
- HTML validation generates error
- Failed to decode downloaded font on expressJS/NodeJS
- fpdf custom font works but not on any other computer
- Is there a font with 3px max width
- Design Issue - Making a Font Global (C++, Marmalade)
- How to understand this CSS inheritance (or override, selection)
- Adobe Flash Pro: Locate asset with missing font
- Use font awesome star rating define by width
Related Questions in FILESYSTEMS
- What kernel level functions are called when we perform write in ext3 file system?
- How to save a file to desired location in c++?
- MongoDB over Traditional File Based System
- How to reliably detect that an atomic move of a directory failed because the target already exists
- Meteor - Create a new folder in the public directory on account creation
- Storing images in MSSQL vs Disk
- Why segment files into chunks for HTTP streaming?
- Difference between stdout and /dev/stdout
- find and remove all closed files that are not modified in some-time
- TypeScript + Node.js FileSystem issue
- Scan folders with non English letters in a given directory
- unknown field 'ioctl' specified in initializer
- how can i encrypt every file with a different key using encFS
- How is a file loaded in the FAT file system?
- Ext.device.filesystem.FileEntry.read() - type: "text" returns blank file
Related Questions in WOFF2
- Implementing AFDKO 'makeotf' CLI program for woff2?
- View contents of a .woff2 font file
- Hardest time getting font to actually show up html file
- In NextJS 14 utilizing Chakra how to load local fonts?
- Woff2 Font-Family warning message about MaxZones
- Woff 2 font with font collection inside
- Woff2 fonts gone in cefsharp on Windows Server 2012R2
- Flutter using woff2 as custom font
- Self-hosted fonts doesnt works on Next.js
- WOFF webfont generator generates an absurd amount of garbage (possibly raw font) data
- Woff2 @font-face Won't Load Properly
- Chrome on Windows 7 and WOFF vs. WOFF2 rendering
- Getting error "libbrotli needed" when compiling woff2
- Failed to load resource: fontawesome-webfont.woff2 Laravel 5.5
- Saving .woff2 fonts into html5 filesystem
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
So here's what I ended out doing. There are 2 ways.
Option 2 works on all browsers except Opera Mini.