Copy link to clipboard
Copied
Hi, might be being a bit of an idiot here but does anybody know how you write Arabic letters in the Nastaliq style in a webpage? For example for the Urdu language? The font families in DW to choose from, I haven’t gone through them all, but the ones I’ve tried so far all display Arabic text in the Naskh style. For example for the Arabic language where it all rests on a flat line. See attached image. Am I missing something obvious?
Nastaliq style
?
Naskh style
اردو متن
It's a web font. It can't be "brought into Dreamweaver."
Try switching to LIVE View or Preview in browser.
Copy link to clipboard
Copied
Try Google Web Fonts
https://fonts.google.com/noto/specimen/Noto+Nastaliq+Urdu
Copy link to clipboard
Copied
Thanks Nancy. I’ve got Noto Nastaliq Urdu. It looks great but it’s not in Dreamweaver. I will start investigating how to bring it into Dreamweaver. Thanks again!
Copy link to clipboard
Copied
It's a web font. It can't be "brought into Dreamweaver."
Try switching to LIVE View or Preview in browser.
Copy link to clipboard
Copied
I’ve got it on my system so it’s available in all my other apps. Do you know how to apply it on a webpage? Thanks again.
Copy link to clipboard
Copied
Do you know how to apply it on a webpage?
By @Gareth_Williams
==========
Custom Webfonts are referenced in the <head> tag of your document like this:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400..700&display=swap" rel="stylesheet">
And in the CSS code, the same as you would for other fonts.
.urdu {
font-family: "Noto Nastaliq Urdu", serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
}
HTML:
<h1 class="urdu">Urdu Heading 1</h1>
<h2 class="urdu">Urdu Heading 2</h2>
<h3 class="urdu">Urdu Heading 3</h3>
<p class="urdu">Urdu paragraph text. Lorem ipsum dolor...</p>
Copy link to clipboard
Copied
I’ve done it! This page https://www.w3schools.com/howto/tryit.asp?font=Noto%20Nastaliq%20Urdu shows you the code and exactly where it goes but basically you paste this …
<link href='https://fonts.googleapis.com/css?family=Noto Nastaliq Urdu' rel='stylesheet'>
in the html code at the top of the page and then paste this into the CSS style code …
font-family: 'Noto Nastaliq Urdu';
It works! Thanks again!
Copy link to clipboard
Copied
Glad you got it sorted. 😁
I guess Google wasn't directly impacted by the massive AWS outage.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now