home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
Using skin expressions to change control location and size based on skin width?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="catavolt" data-source="post: 1158337" data-attributes="member: 54906"><p>Hi Chuck, that´s one of the things not possible with MP - you can´t add a different font.xml in a theme (of course you can, but that will lead to severe problems up to a crash of MP, because the font cache is only written once during start of MP) <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>The only solution would be to add ALL the required fonts in the standard fonts.xml and then use skin expressions to display the correct font like</p><p><font>#(iif(eq(#skin.resolution,'1920'),'font14','font12'))</font> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>And now the bad news: AFAIK the <font> property does not allow skin expressions <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite16" alt=":cry:" title="Crying :cry:" loading="lazy" data-shortname=":cry:" /></p></blockquote><p></p>
[QUOTE="catavolt, post: 1158337, member: 54906"] Hi Chuck, that´s one of the things not possible with MP - you can´t add a different font.xml in a theme (of course you can, but that will lead to severe problems up to a crash of MP, because the font cache is only written once during start of MP) ;) The only solution would be to add ALL the required fonts in the standard fonts.xml and then use skin expressions to display the correct font like <font>#(iif(eq(#skin.resolution,'1920'),'font14','font12'))</font> :) And now the bad news: AFAIK the <font> property does not allow skin expressions :cry: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Using skin expressions to change control location and size based on skin width?
Contact us
RSS
Top
Bottom