Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 18, 20241 yr Please allow to upload font files (woff2, woff, otf, ttf...) in Media as there is currently no way to upload custom font files. These are not unsafe. Edited February 18, 20241 yr by WebCMS
February 28, 20241 yr Community Expert Management Yeah, we can do this. I revamped the resources are for themes in v5 to allow font uploads which is probably a better place for them.
March 22Mar 22 Author Please implement this change in v4 of allowing to upload woff2 files as our workarounds to upload font files with different file extensions keep failing to render after a while on CiC. So far, we've tried using uploaded our woff2 file with txt, css, ico, svg extensions which worked for a while and then stopped rendering.If you have an array of allowed file types to upload in your code, it could be a matter of adding "woff2" to the array (1 line) and the upload logic would work as usual and the font files would render as expected without using any workarounds.Or, if you could RENAME any of our already uploaded *.woff2.* files to *.woff2 extension in the Media directory for us on CiC, that would work too as we can reference the actual woff2 font file in our CSS.