Forum Discussion
karlsandin
9 years agoRegular Visitor
Import custom local font?
I am trying to import a local font but I keep on getting a console error: "@font-face failed cross-origin request. Resource access is restricted." Is it possible at all to import a custom fon...
- 9 years ago
Google "Access-Control-Allow-Origin" to learn more about this issue. Instead, you may use Google Fonts.
v-viig
8 years agoCommunity Champion
Hello murali_r
You can import custom fonts to your own custom visuals by using the solution above.
However, you can't import custom fonts and apply them to Power BI Desktop and other visuals w/o some code modifications.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Friso
7 years agoFrequent Visitor
Hello,
How and where can I import the code beneath?
And is it not possible yet to use is alwasy (one import or for each visual a seperate import?)
@import (less) url('https://fonts.googleapis.com/css?family=Roboto');
body {
font-family: 'Roboto', sans-serif;
}Friso
- v-viig7 years agoCommunity Champion
Please write a valid CSS code to import Roboto Font from Google's servers.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals