I am working on a project. The UI is developed using QT, and Mongolian is needed to be displayed on the UI.But the Mongolian displayed on the UI is a single mongolian character.
QT's layout engine uses the harfbuzz library. There is no Mongolian related module in the harfbuzz source code.Does harfbuzz support Mongolian layout? If it doesn't,any other library can work?
Another,I found some message in help manual.
https://harfbuzz.github.io/opentype-shaping-models.html
["The Arabic shaping model supports Arabic, Mongolian, N'Ko, Syriac, and several other connected or cursive scripts." ]
Does it mean that Mongolian processing module is included in Arabic module? If so, how to make Arabic module support Mongolian layout?
Does it mean that Mongolian processing module is included in Arabic module? If so, how to make Arabic module support Mongolian layout?
Yes because logic of Mongolian script was similar to Arabic that's why it is handled on the same code path.
But that is just a detail, clients shouldn't care about the way harfbuzz works and organized internally and if you have something that works in Windows or macOS shaper but not in HarfBuzz, or you just believe your expectations is what should a shaper do, just file a bug about it in HarfBuzz repo.
Does it mean that Mongolian processing module is included in Arabic module? If so, how to make Arabic module support Mongolian layout?
Not differently from creating a text render for any other script which is the point of creating unified shapers. Maybe libraqm, works on top of HarfBuzz, can provide what you need eventually, I remember it had supporting for top to bottom writing mode also, have a look it at I suggest.
Thanks!
Related
I am creating a free application with pyqt5.
In this application, i need to give the users the possibility to type custom python scripts.
I don't want to develop a whole python syntax parser and provide autocompletion as it seems a long process and the scripting is not the most important part of the application.
I ask whether vscode (or other script editing tool) offer the possibility to embed a special editor as a QWidget inside an application that provides syntax analysis and autocompletion.
Thanks for help
Yes, there is: QScintilla, the Qt port of scintilla, a library for text editing oriented to source code editing.
This is how you set up a basic editor with minimal syntax highlighting:
class Editor(Qsci.QsciScintilla):
def __init__(self):
super().__init__()
font = self.font()
font.setFamily('mono')
self.setFont(font)
# create a "Lexer", which is what allows syntax highlighting
# within the editor; the following is the class for python
# syntax, but there are other classes for different languages
lexer = Qsci.QsciLexerPython()
lexer.setDefaultFont(font)
self.setLexer(lexer)
You can find the documentation at the official site
Is it mandatory to embbed the editor inside your application?
Maybe you could make your app open a system editor instead and let the user choose the tool of his preference.
Is there any difference between "Complete" version (In the top section close to the "Essential", "Custom" and "Sass" link) and "Customize Foundation/custom version" with "All Foundation Components"in Foundation download page?
See below images, please:
With:
I want to download the latest version of foundation 6+ completely with full components of it, but it seems there are many differences between these two versions just in LTR Languages without considering the RTL matter (for example in style of buttons and width of rows and etc).
Button style in Complete version:
and that button in Custom version:
As you can see the background-color and color (text-color) and border-radius are different, But both of them are in RTL (6.3.1) version.
Note: I compared and tested both those versions in LTR direction.
I will be grateful if anyone explain the cause of difference between those versions and explain which one of them is more complete and reliable?
Since your requirement is RTL language support you should choose either Custom Download (and select appropriate text direction) or Sass.
Custom Download gets you running quickly with just the end result JavaScript and CSS files.
Sass is the entire pipeline: build, Scss, ES6, unit tests, etc. And yes, you can configure RTL using the Sass version too. It's just a configuration change.
Also, the Sass version allows you to optionally work with latest set of changes from Zurb and the community. You know, fixes and features that have not been made into an official release.
I need to embed swf generated from fusionchart to my drupal 7 node. Since there is no D7 version of swftools, I guess I have to use swfobject javascrpit library.
My question is, how can I use it with fusionchart to display graphs...??
There is a Drupal Module that allows you to integrate FusionCharts.
http://drupal.org/project/fusioncharts
Otherwise, swfobject is already included in the latest version of FusionCharts JavaScript Library. Including FusionCharts.js provides you with all the necessary items required to render FusionCharts.
Is there a stylesheet available for use in Qt applications (through Qt Creator) that makes your GUI use the stylesheet you see in Qt Creator itself, as well as in AutoCAD and some other applications?
What is the name of that stylesheet or where can I get it? It looks much like the Vista stylesheet though...
And whenever you set a custom stylesheet to your Qt application, will it display the same style on all platforms, or will it still display native GUI parts?
To the people that may want to find out more: The style seems to be called manhattanstyle and extends QWindowsStyle. It is not a css-stylesheet and therefore not just copy and paste to set up. It seems to have some other dependencies in the source code, so I don't know how much it will take to adapt it.
The source is found in the [qt-creator source code]/src/plugins/coreplugin/manhattanstyle.cpp
And btw: if you are running debian/ubuntu: type apt-get source qt-creator to get the source ;)
I can't say as to how you would get style sheets that match Qt Creator or AutoCAD but to answer your other question: When you apply a style sheet, it applies to the object you applied it to, and the child hierarchy of that object. Any widget not addressed by the style sheet in some way will maintain the native look and feel that matches the Style (not style sheet) chosen by Qt as most appropriate for you application based on the user's platform and desktop environment.
yes, somebody has separated it out.
see this Manhattan style
I created an application which uses a custom font and it used to work for some reason. Now it doesn't recognize the font I included in the jar and it renders the text using the default font.
I really don't get it. When I run the application from Netbeans everything is OK.
Any ideas? I cleared the Java cache and everything but no luck. I am running JRE 1.6.0_20.
I even tried this guy's example and it does not work. It actually shows squares because of the font not found.
I hope someone has the solution.
JavaFX caches the fonts, so you must register the font before any use of the javafx.scene.text.Font class. Once you use the javafx Font classes, the system fonts are cached and it is never consulted again. Also, this is an AWT specific mechanism and will not work on platforms that support PRISM, like JavaFX-TV.