The design_brief here is the entire HTML page generated based on the inputs, including a reference or a tag with our CSS.
@WebView('Design Brief', duration_guess=1)
def show_design_brief(self, params, **kwargs):
"""Return a WebResult object with a design brief (str)."""
obj = safe_call(self.calculate_result, params, **kwargs)
design_brief = self.get_html_result(
obj=obj,
params=params,
**kwargs)
return WebResult(html=design_brief)
We figured it might be the case we are not be able to access fonts files in our directory for security reasons, as the other components of the CSS that are not fonts/files work just fine.
I’ve been in contact with our front-end team about this and they’ve managed to get it to work by simply importing the font from a url. A snippet of what that would look like in html code: