Skip to content

Commit ada2d0e

Browse files
committed
Post-merge conflicts fixes
1 parent 5087f41 commit ada2d0e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontCache/FontSourceCollection.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
//
@@ -81,7 +81,7 @@ private void SetFontSources()
8181
{
8282
List<IFontSource> fontSources;
8383
if (_uri.IsFile)
84-
{
84+
{
8585
if (_isFileSystemFolder)
8686
{
8787
if (_tryGetCompositeFontsOnly)
@@ -90,7 +90,7 @@ private void SetFontSources()
9090
fontSources = new List<IFontSource>(files.Length);
9191

9292
foreach (string file in files)
93-
fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), _isWindowsFonts, true));
93+
fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), true));
9494
}
9595
else
9696
{
@@ -99,15 +99,15 @@ private void SetFontSources()
9999
foreach (string file in Util.EnumerateFontsInDirectory(_uri.LocalPath))
100100
{
101101
bool isComposite = Util.IsCompositeFont(file);
102-
fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), _isWindowsFonts, isComposite));
102+
fontSources.Add(new FontSource(new Uri(file, UriKind.Absolute), isComposite));
103103
}
104104
}
105105
}
106106
else
107107
{
108108
fontSources = new List<IFontSource>(1);
109109
if (Util.IsSupportedFontExtension(Path.GetExtension(_uri.LocalPath.AsSpan()), out bool isComposite))
110-
fontSources.Add(new FontSource(new Uri(_uri.LocalPath, UriKind.Absolute), _isWindowsFonts, isComposite));
110+
fontSources.Add(new FontSource(new Uri(_uri.LocalPath, UriKind.Absolute), isComposite));
111111
}
112112
}
113113
else
@@ -145,7 +145,7 @@ private void SetFontSources()
145145
}
146146
}
147147

148-
148+
149149
#region IEnumerable<FontSource> Members
150150

151151
IEnumerator<IFontSource> IEnumerable<IFontSource>.GetEnumerator()
@@ -164,8 +164,7 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
164164
return _fontSources.GetEnumerator();
165165
}
166166

167-
#endregion
168-
167+
#endregion
169168

170169
private Uri _uri;
171170

0 commit comments

Comments
 (0)