1

I am using a custom font to display Hindi, and the font characters are cutting at left and right edges. Below is the screenshot of my app. I have already used padding, but it seems to make the font cut even more.

enter image description here

Here you can see I have just used two textview only, with "match_parent" for both of their widths.

The code is as follows:

<ScrollView
    android:id="@+id/ScrollView01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_below="@+id/resultTitle"
    android:layout_alignParentBottom="true"
    android:background="@color/background_color" >

    <LinearLayout
        android:id="@+id/LinearLayout01"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/textViewEng"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:padding="10dp"
            android:textColor="@color/orange"
            android:textSize="50dp"
            android:textStyle="bold" >
        </TextView>

        <TextView
            android:id="@+id/textViewGuj"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:padding="10dp"
            android:textColor="@android:color/black"
            android:textSize="40dp"
            android:textStyle="bold" />
    </LinearLayout>
</ScrollView>

08Dc91wk
  • 3,970
  • 6
  • 28
  • 64
Panchal Amit
  • 12,802
  • 10
  • 73
  • 137

0 Answers0