private void ApplyCustomTypeFace(Paint paint, Typeface tf) { paint.FakeBoldText = false; paint.TextSkewX = 0f; paint.SetTypeface(tf); if (_rotate) paint.ClearShadowLayer(); if (_iconSizeRatio > 0) paint.TextSize = (paint.TextSize * _iconSizeRatio); else if (_iconSizePx > 0) paint.TextSize = _iconSizePx; if (_iconColor < Int32.MaxValue) paint.Color = new Color(_iconColor); paint.Flags = paint.Flags | PaintFlags.SubpixelText; }
private void ApplyCustomTypeFace(Paint paint, Typeface tf) { paint.FakeBoldText = false; paint.TextSkewX = 0f; paint.SetTypeface(tf); if (rotate) paint.ClearShadowLayer(); if (iconSizeRatio > 0) paint.TextSize = paint.TextSize * iconSizeRatio; else if (iconSizePx > 0) paint.TextSize = iconSizePx; if (iconColor < int.MaxValue) paint.Color = new Color(iconColor); }
private void ApplyCustomTypeFace(Paint paint, Typeface typeface) { paint.FakeBoldText = false; paint.TextSkewX = 0f; paint.SetTypeface(typeface); if (_rotate) { paint.ClearShadowLayer(); } if (_iconSizeRatio > 0) { paint.TextSize = paint.TextSize*_iconSizeRatio; } else if (_iconSizePx > 0) { paint.TextSize = _iconSizePx; } if (_iconColor < int.MaxValue) { paint.Color = _iconColor; } }