Create a style:
<style name="ZxingTheme" parent="zxing_CaptureTheme">
<item name="android:fontFamily">@font/open_sans</item>
<item name="android:gravity">center_horizontal</item>
</style>
Override in manifest:
<activity
android:name="com.journeyapps.barcodescanner.CaptureActivity"
android:screenOrientation="portrait"
android:theme="@style/ZxingTheme"
tools:replace="screenOrientation, theme" />