Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Indic Fonts display - UPP
Indic Fonts display - UPP [message #58438] Fri, 20 May 2022 15:13 Go to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
I need Indian scripts display in applications created using UPP.

To display Indian fonts HarfBuzz usage is required.

All Indian scripts are very complex. All these complexcities are handled by HarfBuzz.

We have conjuncts (joined glyph ) some times with up to 5 chars and multi tier. Some char sequences are interchanged for display.

Steps required for Display India String.


  • Load and init font with HarfBuzz functions
  • Shape the string with HarfBuzz function. This gives correct glyph sequence
  • Get array of Glyph index for the processed string
  • Display string using glyph index to get glyph from font file.

I have modified the TextToSvgPath example to display the Indic fonts.
I am attaching code in next message along with font files.

Looking for hints how to use HarfBuzz pre-processing generically for UPP display.


index.php?t=getfile&id=6593&private=0


Warm Regards

Deepak
Re: Indic Fonts display - UPP [message #58439 is a reply to message #58438] Fri, 20 May 2022 15:16 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
File with code and fonts along with info of modification done to files in uppsrc/Draw folder.





Warm Regards

Deepak
Re: Indic Fonts display - UPP [message #58450 is a reply to message #58439] Mon, 23 May 2022 16:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
This is really helpful as composition is one thing that is missing.

This solves the problem in Linux. Could you try or suggest how to integrate harfbuzz in windows?

I think plugin/harfbuzz should possible; alternatively it might be possible to ship static library maybe with our win32 release?
Re: Indic Fonts display - UPP [message #58454 is a reply to message #58450] Tue, 24 May 2022 09:08 Go to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Mirek,

I will check it for windows also. Within week.


Warm Regards

Deepak
Previous Topic: Anybody lucky using libclang?
Next Topic: Just to show
Goto Forum:
  


Current Time: Thu Mar 28 17:38:39 CET 2024

Total time taken to generate the page: 0.01076 seconds