The upper half of the text missing.

0
Hello, I want to ask a question. I’m making a native app right now. I created a text label with custom styling like this:   export const fontNotif = {     text: {         color: '#ffffff',         fontSize:40     }, }; But the result was the upper half of my text is missing. How can I fix it?
asked
1 answers
1

Hello Wahyu,

 

You can use the attribute lineHeight, as below:

 

export const textSacramentoNormal = {
    text: {
        fontFamily: sacramentoFontFamily.regular,
        fontWeight: 'normal',
        fontSize: 30,
        lineHeight: 40,
    },
};

 

For more details on how to configure custom fonts in a Mendix Native Mobile app, please see:

https://vstram.medium.com/how-to-configure-custom-fonts-in-a-mendix-native-mobile-android-application-97d049ec40f4

 

 

 

answered