A fork of bypass library that allows to use different font for bold, italic and italicbold formatted texts. It uses a custom font span under the hood.
3 new methods were added:
Bypass.setsetBoldTypeface(Typeface)
Bypass.setItalicTypeface(Typeface)
Bypass.setBoldItalicTypeface(Typeface)
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.mzgreen:bypasses:1.0.5'
}
See http://uncodin.github.io/bypass/
See this issue for an explination for getting Robolectric to work.
This dependency also packages the Proguard rules suggested for bypass to work properly with Proguard enabled
Copyright 2015 Commit 451
Copyright 2015 Uncodin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.