CustomWebView : An extended form of Web Viewer

Not possible currently.
Will be added in next version :+1:

1 Like

I was looking for this, thank you @vknow360. I really need this feature

1 Like

I donโ€™t get why this isnโ€™t possible? Just get the family url from fonts.google.com and in the css file write this:

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');`

I used Montserrat for this example.
And then if you want the font to be the same for the whole web page just do:

body {
  font-family: 'Montserrat', sans-serif; /* font family */
  font-weight: 800; /* font weight code /*
  /* add other details here */
}

Edit: Please follow the generic structure of an HTML page

Summary
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="main.css">
</head>
<body>

</body>
</html>
1 Like

I know the HTML structure, I am familiar with HTML.
My app is offline, will it work when offline?

I think yes if you will upload ttf in assets and use font from there (Correct me if I am wrong because I am still learning CSS)

I have uploaded ttf file, i need to know how to integrate the font into HTML

This should work for you:

@font-face {
font-family: Your_Font_Name;
src: url(file:///android_asset/Your_ttfFile_Name.ttf);
}

Is there anything wrong @Mateja ?

Hm, @rizu give it a shot.
If it does not work try this:

@import url('file:///android_asset/filename.ttf')
body {
  font-family: 'FONT-NAME';
  font-weight: 400 /* three digit code */
}
1 Like

Try again :smile:

I have no idea why it worked the first time. :rofl:

1 Like

Probably because of cache.

1 Like

Thank you for the idea of @font-face rule

Will this work?

@font-face {
font-family: Baloo_Da_2;
src: url(file:///android_asset/BalooDa2-Regular.ttf);
} 

&

body {
font-family: 'Baloo Da 2', cursive;
font-weight: 400;
}

Give it a try.

1 Like

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Because you are not using CustomWebView so asking questions which are not related to it does not make sense.
I suggest you to open a new topic about your issue.

1 Like

You are missing 's, try this:

1 Like

Can you add default browser to it without deep host extension

Can you send me a PM?

What is PM