There are lots of questions about red squiggles in Android Studio, but I could not find one for this particular situation. I am posting this in case it helps someone.
I downloaded Work Sans from fonts.google, unzipped it, and moved a couple of the .ttf files into a newly-created resource folder named font
. The files have red squiggles under them, but when I hover over them, no error message appears.
When I click on the files I see "Lorem ipsum..." rendered fine.
What is the issue with these files?
There are lots of questions about red squiggles in Android Studio, but I could not find one for this particular situation. I am posting this in case it helps someone.
I downloaded Work Sans from fonts.google, unzipped it, and moved a couple of the .ttf files into a newly-created resource folder named font
. The files have red squiggles under them, but when I hover over them, no error message appears.
When I click on the files I see "Lorem ipsum..." rendered fine.
What is the issue with these files?
Share asked Mar 7 at 14:41 bartonstanleybartonstanley 1,32714 silver badges30 bronze badges1 Answer
Reset to default 0As downloaded, the names of the files were of the form WorkSans-SomeModifier.ttf
, e.g. WorkSans-Light.ttf
. I renamed the files to be of the form work_sans_some_modifier.ttf
, e.g. work_sans_light.ttf
, i.e. snake case. The red squiggles disappeared and I was able to reference those fonts.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744923342a4601272.html
评论列表(0条)