Nez.Portable/PipelineRuntime/BitmapFonts/BitmapFont.cs
/// <summary>
/// gets the BitmapFontRegion for the given char optionally substituting the default region if it isnt present.
/// </summary>
/// <returns><c>true</c>, if get font region for char was tryed, <c>false</c> otherwise.</returns>
/// <param name="c">C.</param>
/// <param name="fontRegion">Font region.</param>
/// <param name="useDefaultRegionIfNotPresent">If set to <c>true</c> use default region if not present.</param>
gets the BitmapFontRegion for the given char optionally substituting the default region if it isnt present.
gets the BitmapFontRegion for the given char optionally substituting the default region if it isnt present .
public bool tryGetFontRegionForChar(
            char c,
            out BitmapFontRegion fontRegion,
            bool useDefaultRegionIfNotPresent = false)
        {
            if (!_characterMap.TryGetValue(c, out fontRegion))
            {
                if (useDefaultRegionIfNotPresent)
                {
                    fontRegion = defaultCharacterRegion;
                    return true;
                }
                return false;
            }
            return true;
        }
public bool tryGetFontRegionForChar ( char c , out BitmapFontRegion fontRegion , bool useDefaultRegionIfNotPresent = false ) { if ( ! _characterMap . TryGetValue ( c , out fontRegion ) ) { if ( useDefaultRegionIfNotPresent ) { fontRegion = defaultCharacterRegion ; return true ; } return false ; } return true ; }
gets the BitmapFontRegion for the given char optionally substituting the default region if it isnt present.
gets the BitmapFontRegion for the given char optionally substituting the default region if it isnt present .
None
c
char
None
BitmapFontRegion
out
useDefaultRegionIfNotPresent
bool
If set to true
If set to true
fontRegion
None