コード例 #1
0
            /**
             * @return a new instance of BootstrapText, constructed according to Builder arguments.
             */
            public BootstrapText Build()
            {
                BootstrapText bootstrapText = new BootstrapText(_sb.ToString());

                foreach (var entry in _fontIndicesMap)
                {
                    int index = entry.Key;

                    var span = new AwesomeTypefaceSpan(TypefaceProvider.GetTypeface(_context.ApplicationContext, entry.Value));
                    bootstrapText.SetSpan(span, index - 1, index, SpanTypes.InclusiveInclusive);
                }
                return(bootstrapText);
            }