Hi there. This is my first post, so if I do stupid stuff, don't hesitate to tell me. I'm a noob in this community. If you want to read my introductory text, scroll below.

I currently work on a project with many SVGs as external documents with text.
Among others I want to use a certain font (in woff format) in all SVGs.
In the way the SVGs are currently embedded in the website it appears that linking to an external font is no solution, but only if the font data is embedded within the SVG i.e. it's no problem to link an external font file into an SVG if the SVG is displayed directly in the browser, but not so if it's embedded within a webpage. There I have to rely on embedding the font into the SVGs by using

To avoid overhead by loading the same data for each SVG and as the font may change over the course of the project (which would require changing all SVGs) I came up with the idea of injecting that font data at runtime into all SVGs.

However with this example (where I don't yet load the SVG dynamically but it is embedded within the html), I can't inject the font data completely as only about the first 10000 characters are injected. It does not appear to be a limitation of Javascript strings, as a quick search indicated that they are usually supporting up to 2^31 chars.
Any ideas on this?

Personal introduction textI have a computer science MSc with a good background in usability and web development. I currently work partially as a freelance web developer. I considered joining a message board on web development, as I was more used to kind of a closer community in my "previous" online life, than it is currently implemented e.g. with StackOverflow. I think StackOverflow has it's uses, but I probably need something else for now and try it with the "closer community" approach. If I break forum rules, don't hesitate to tell me (but yes, I follow common netiquette anyway). As said I'm still a community noob and deem no intentional harm.