{"id":4033,"date":"2023-01-17T19:37:29","date_gmt":"2023-01-17T18:37:29","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=4033"},"modified":"2023-01-17T19:37:29","modified_gmt":"2023-01-17T18:37:29","slug":"adding-a-font-to-an-msix","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2023\/01\/adding-a-font-to-an-msix\/","title":{"rendered":"Adding a font to an MSIX"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">My friends at Advanced Installer have an excellent article (actually the only authority on the subject) <a href=\"https:\/\/www.advancedinstaller.com\/install-fonts-msix.html\" target=\"_blank\" rel=\"noreferrer noopener\">describing how to add a font to an MSIX.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, I kept getting an invalid manifest 0x80080204 error when trying to save the manifest after adding the extension section while creating an MSIX for Visual Studio Code (<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/microsoft\/vscode\/issues\/85872#issuecomment-674383709\" target=\"_blank\">which needs a specific font or icons won&#8217;t show<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I then noticed there was no xmlns link at the top of the package for uap4 \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the following in your manifest:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;Package xmlns=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/foundation\/windows10&quot; xmlns:uap=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10&quot; xmlns:uap2=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/2&quot; xmlns:uap3=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/3&quot; xmlns:uap10=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/10&quot; xmlns:rescap=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/foundation\/windows10\/restrictedcapabilities&quot; IgnorableNamespaces=&quot;uap uap2 uap3 uap10 rescap&quot;&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">with this (or just add uap4):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;Package xmlns=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/foundation\/windows10&quot; xmlns:uap=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10&quot; xmlns:uap2=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/2&quot; xmlns:uap3=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/3&quot; xmlns:uap4=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/4&quot; xmlns:uap10=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/uap\/windows10\/10&quot; xmlns:rescap=&quot;http:\/\/schemas.microsoft.com\/appx\/manifest\/foundation\/windows10\/restrictedcapabilities&quot; IgnorableNamespaces=&quot;uap uap2 uap3 uap4 uap10 rescap&quot;&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">And it should work \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My friends at Advanced Installer have an excellent article (actually the only authority on the subject) describing how to add a font to an MSIX. However, I kept getting an invalid manifest 0x80080204 error when trying to save the manifest after adding the extension section while creating an MSIX for Visual Studio Code (which needs &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2023\/01\/adding-a-font-to-an-msix\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Adding a font to an MSIX<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-4033","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=4033"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4033\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=4033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=4033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=4033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}