2023-05-11, 10:30
Hi, I have a problem where I have an addon dependency for some extra fonts, but it can't currently be approved in the official repo due to an issue with the Addon Checker used as part of the approval process (it currently doesn't see kodi.resource.font as a valid extension point: https://github.com/xbmc/repo-resources/pull/392)
As there's an indefinite time frame on a fix, I need to remove the dependency as it's currently holding my skin back from being able to be installed in the official repo.
But instead of throwing the baby out with the bathwater and removing the additional fontset from Font.xml entirely, I wanted to see if there was a way to have it available via a conditional include for people who have installed the extra fonts from my repository already or are willing to do so for CJK support.
In the wiki, it suggests this should be possible: https://kodi.wiki/view/Fonts
It is possible to use includes (eg. <include>MonoSpace</include>) in Font.xml There has to be at least one font set with the unicode attribute set to true else languages like Chinese or Korean will not display properly.
I just can't seem to get this working though. I've tried putting the whole fontset in an include with a condition like so:
Then in my Font.xml, adding the include even without a condition, e.g. <include>Additional_Fontset</include>, doesn't work. Going to Settings > Interface > Fonts, I only see my Default. Not the additional fontset.
@ronie @jurialmunkey sorry to ask directly - do you know if it's possible to use includes with Fonts.xml somehow and I'm getting it wrong? Alternatively is there another way I can have the additional fontset from an addon supported by my skin without needing the dependency?
As there's an indefinite time frame on a fix, I need to remove the dependency as it's currently holding my skin back from being able to be installed in the official repo.
But instead of throwing the baby out with the bathwater and removing the additional fontset from Font.xml entirely, I wanted to see if there was a way to have it available via a conditional include for people who have installed the extra fonts from my repository already or are willing to do so for CJK support.
In the wiki, it suggests this should be possible: https://kodi.wiki/view/Fonts
It is possible to use includes (eg. <include>MonoSpace</include>) in Font.xml There has to be at least one font set with the unicode attribute set to true else languages like Chinese or Korean will not display properly.
I just can't seem to get this working though. I've tried putting the whole fontset in an include with a condition like so:
xml:
<include name="Additional_Fontset">
<fontset id="Inter + Noto Sans KR" unicode="true">
<font>
...
</font>
</fontset>
</include>
Then in my Font.xml, adding the include even without a condition, e.g. <include>Additional_Fontset</include>, doesn't work. Going to Settings > Interface > Fonts, I only see my Default. Not the additional fontset.
@ronie @jurialmunkey sorry to ask directly - do you know if it's possible to use includes with Fonts.xml somehow and I'm getting it wrong? Alternatively is there another way I can have the additional fontset from an addon supported by my skin without needing the dependency?