Merge pull request #772 from Ullas-Aithal/feature/ZeroSlashedFont
Added slashed font to differentiate between zero and alphabet O in secret textbox #665
This commit is contained in:
commit
81fe354a4f
4 changed files with 17 additions and 3 deletions
|
@ -133,6 +133,7 @@ If you want to show your appreciation for our work with a small donation you can
|
||||||
* [OpenPGP API library](https://github.com/open-keychain/openpgp-api)
|
* [OpenPGP API library](https://github.com/open-keychain/openpgp-api)
|
||||||
* [VNTNumberPickerPreference](https://github.com/vanniktech/VNTNumberPickerPreference)
|
* [VNTNumberPickerPreference](https://github.com/vanniktech/VNTNumberPickerPreference)
|
||||||
* [ZXing Android Embedded](https://github.com/journeyapps/zxing-android-embedded)
|
* [ZXing Android Embedded](https://github.com/journeyapps/zxing-android-embedded)
|
||||||
|
* [Droid Sans Mono Zeromod](https://github.com/AlbertoDorado/droid-sans-mono-zeromod)
|
||||||
|
|
||||||
#### Code examples used:
|
#### Code examples used:
|
||||||
|
|
||||||
|
|
BIN
app/src/main/res/font/droid_sans_mono_slashed.ttf
Normal file
BIN
app/src/main/res/font/droid_sans_mono_slashed.ttf
Normal file
Binary file not shown.
|
@ -94,7 +94,7 @@
|
||||||
android:background="?attr/editTextBackground"
|
android:background="?attr/editTextBackground"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:textIsSelectable="true"
|
android:textIsSelectable="true"
|
||||||
android:fontFamily="monospace"
|
android:fontFamily="@font/droid_sans_mono_slashed"
|
||||||
android:maxLines="3"
|
android:maxLines="3"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
android:layout_weight="7"
|
android:layout_weight="7"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="monospace"
|
android:fontFamily="@font/droid_sans_mono_slashed"
|
||||||
android:inputType="textMultiLine"
|
android:inputType="textMultiLine"
|
||||||
android:maxLines="3"
|
android:maxLines="3"
|
||||||
android:hint="@string/hint_secret" />
|
android:hint="@string/hint_secret" />
|
||||||
|
|
|
@ -74,4 +74,17 @@
|
||||||
<string name="library_OpenPGPAPI_repositoryLink">https://github.com/open-keychain/openpgp-api</string>
|
<string name="library_OpenPGPAPI_repositoryLink">https://github.com/open-keychain/openpgp-api</string>
|
||||||
|
|
||||||
<string name="library_OpenPGPAPI_licenseId">apache_2_0</string>
|
<string name="library_OpenPGPAPI_licenseId">apache_2_0</string>
|
||||||
|
|
||||||
|
<!-- Droid Sans Mono Slashed Font -->
|
||||||
|
<string name="define_MonoSlashedFont"></string>
|
||||||
|
<string name="library_MonoSlashedFont_author"> Alberto Dorado</string>
|
||||||
|
|
||||||
|
<string name="library_MonoSlashedFont_libraryName">Droid Sans Mono Zeromod</string>
|
||||||
|
<string name="library_MonoSlashedFont_libraryDescription">Replaces Droid Sans Mono font\'s zero character with slashed zero/dotted zero.</string>
|
||||||
|
<string name="library_MonoSlashedFont_libraryWebsite">https://github.com/AlbertoDorado/droid-sans-mono-zeromod</string>
|
||||||
|
|
||||||
|
<string name="library_MonoSlashedFont_isOpenSource">true</string>
|
||||||
|
<string name="library_MonoSlashedFont_repositoryLink">https://github.com/AlbertoDorado/droid-sans-mono-zeromod</string>
|
||||||
|
|
||||||
|
<string name="library_MonoSlashedFont_licenseId">apache_2_0</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue