Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Updated the way fonts get imported
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Jun 7, 2019
1 parent 794c2bb commit d72086d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions UWPX_UI/Scripts/setupFont.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
$solPath = $args[0]

if (Test-Path "env:RunningCI") {
Write-Output "Skipping font import."
if (Test-Path "env:windir") {
Write-Output "Copying font 'Segoe UI Emoji' (seguiemj.ttf)..."
cp -force "$env:windir\Fonts\seguiemj.ttf" $solPath\Assets\Fonts\seguiemj.ttf
Write-Output "Font copied"

Write-Output "Copying font 'Segoe MDL2 Assets' (segmdl2.ttf)..."
cp -force "$env:windir\Fonts\segmdl2.ttf" $solPath\Assets\Fonts\segmdl2.ttf
Write-Output "Font copied"
exit 0
}

Write-Output "Copying font 'Segoe UI Emoji' (seguiemj.ttf)..."
cp -force C:\Windows\Fonts\seguiemj.ttf $solPath\Assets\Fonts\seguiemj.ttf
Write-Output "Font copied"

Write-Output "Copying font 'Segoe MDL2 Assets' (segmdl2.ttf)..."
cp -force C:\Windows\Fonts\segmdl2.ttf $solPath\Assets\Fonts\segmdl2.ttf
Write-Output "Font copied"
Write-Output "Skipping font import. No 'windir'"

0 comments on commit d72086d

Please sign in to comment.