Skip to content
Permalink
Browse files

Updated the font copy script

  • Loading branch information...
COM8 committed Aug 13, 2019
1 parent b8727d7 commit 91da54ea736cf007f60d111b58bc4fa81fa05c9f
Showing with 7 additions and 6 deletions.
  1. +7 −6 UWPX_UI/Scripts/setupFont.ps1
@@ -4,22 +4,23 @@ if (Test-Path "env:windir") {
$segoeUiPath = "$env:windir\Fonts\seguiemj.ttf"
if([System.IO.File]::Exists($segoeUiPath)) {
Write-Output "Copying font 'Segoe UI Emoji' (seguiemj.ttf)..."
cp -force $segoeUiPath $solPath\Assets\Fonts\seguiemj.ttf
Copy-Item -Force -Path $segoeUiPath -Destination $solPath\Assets\Fonts\seguiemj.ttf
Write-Output "'Segoe UI Emoji' copied."
}
else {
Write-Warning "'Segoe UI Emoji' not found: $segoeUiPath"
Write-Error "'Segoe UI Emoji' not found: $segoeUiPath"
exit 1
}


$segoeMDL2AssestsPath = "$env:windir\Fonts\seguiemj.ttf"
$segoeMDL2AssestsPath = "$env:windir\Fonts\segmdl2.ttf"
if([System.IO.File]::Exists($segoeMDL2AssestsPath)) {
Write-Output "Copying font 'Segoe MDL2 Assets' (segmdl2.ttf)..."
cp -force $segoeMDL2AssestsPath $solPath\Assets\Fonts\segmdl2.ttf
Copy-Item -Force -Path $segoeMDL2AssestsPath -Destination $solPath\Assets\Fonts\segmdl2.ttf
Write-Output "'Segoe MDL2 Assets' copied."
}
else {
Write-Warning "'Segoe UI Emoji' not found: $segoeUiPath"
Write-Error "'Segoe UI Emoji' not found: $segoeUiPath"
exit 1
}
exit 0
}

0 comments on commit 91da54e

Please sign in to comment.
You can’t perform that action at this time.