LWUIT createTrueTypeFace Font - java-me

I need to use a custom Font for my J2ME Application, the Font name is verdana, I'm using LWUIT, I have downloaded the .ttf file for my Font and add it to my package and tried to load it using
Font.createTrueTypeFace method but I got --> unsupported operation exception
so can any one please help ?

TrueType fonts only work in platforms where the isTrueType supported returns true. Currently in LWUIT it doesn't work anywhere since we never completed that feature before leaving Oracle.

Related

SVG toolbar icons in VS Code extension

The documentation says you can't reference SVG from markdown, but I didn't see anything saying I couldn't use it for toolbar icons. I've done just that, and an icon that works perfectly in the extension host is missing when I package and install from a VSIX.
Is SVG also disallowed for toolbar icons within an extension? If I must render bitmaps, in what format and at what resolutions? Is there detailed guidance on this that I have failed to read?
SVG is supported.
Files in project-root/src are not bundled. Put the icons anywhere other than the src folder and they will be bundled. (I certainly snatched defeat from the jaws of victory with that one!)

How to configure Antialiasing Fonts in Markdown Preview in PhpStorm Linux?

I use Arch Linux and PhpStorm 2017.1
The font rendering for code itself is quite good but in Markdown Preview is terrible see screenshot section on the right eg. bulleted list text "The Solr admin...").
Where can I configure the font used for Markdown Preview?
Ok, finally I found the solution.
In Settings>Languages & Frameworks>Markdown>Preview select Preview Browser: JavaFX WebView and check Use grayscale rendering for JavaFX preview.

QLineEdit Japanese/Chinese character 𤭢 not displayed

I have a QLineEdit where user will enter a name (not necessary a human name) and the character is not rendered.
It looks like:
How do I have to configure the QLineEdit encoding to get that character visible?
It looks that the solution is quite simple. It is needed to upgrade to Qt 5.5.1.
The symbol is also correctly displayed in the editor of Qt Creator 3.5.1 that is based on Qt 5.5.1. In Qt Creator 3.2.1 (based on Qt 5.3.2) the symbol is not displayed.
The symbol is displayed as rectangle in UI controls of Qt 5.3.2. However, it is correctly displayed in labels and in other text controls if the project is built by Qt 5.5.1.
It appears that at least Qt 5.5.1 is needed to find such character if it is not present in the default font of the UI control.
The default font fall back mechanism is implemented only in Qt 5.5.1, so even Q 5.5.0 cannot properly display the character if it is not found in the selected font.
I guess that the improvement is done by the Qt commit 5e3e34731b7880ac775e8f1fa156ce016e6820f1 Default implementation for QPlatformFontDatabase::fallbacksForFamily() (maybe in connection with previous [QFontDatabase] Defer the fallback families list initialization).
However, it is still possible to display that character in older Qt versions (even in Qt4). It possible to set manually font that supports needed symbols.
For example, there is font "SimSun-ExtB" in Windows that supports CJK Unified Ideographs Extension B. That font can be set manually to specific UI widgets or to the entire application:
QFont CJK_ExtB("SimSun-ExtB");
// font for widget
ui->lineEdit->setFont(CJK_ExtB);
// or default application font
QApplication::setFont(CJK_ExtB);
Of course to display a character it should be available in some system font or in application loaded font. Windows 7 by default has font for CJK Ext.B, but to display symbols from CJK-C or CJK-D some other font is needed. For example, there is a free Unicode CJK font BabelStone Han that covers some such symbols. It is possible to load it manually for application:
QFontDatabase::addApplicationFont("c:/test/BabelStoneHan.ttf");
Now the application is able to find automatically CJK-B symbols in Windows system font "SimSun-ExtB" and CJK-C symbols in "BabelStoneHan" if Qt 5.5.1 is used.
The font fallback improvement in Qt 5.5.1 mainly affects Windows, since in Ubuntu Linux the application is able to find proper fonts for symbols even with older Qt versions (if fonts are added by QFontDatabase::addApplicationFont, since there is no system fonts for CJK extensions by default).

Changing font of text inside an extension library dialog box?

How do you change the text within the extension library dialog box? No matter what I do, the text remains the same size. I can see the font change in the designer cleint but not in the browser. I tried looking at it with IE Developer Tools but I can't even see the text anywhere.
I have no idea what was going on yesterday but it just wasn't working. I was simply trying to set the text size of a computed field inside a dialog box. I changed the font size in the properties of the computed field and seems to work now, We have seen these issues on our dev server before.
I am not sure if you can change the text with text options but you can if you use HTML, and it should also work with CSS.
Standard <h1><h2><h... oh you get the idea works for me.

External fonts not available on XIB

Hey friends, I've added a font file (.ttf) in resources folder in XCode 4 and also in info.plist. I am able to use those fonts via code. But those fonts are not available on XIB i.e. font name appears in the list but its not getting applied onto UI components (some default font style gets applied). Any idea on this?
I found that we've to create IBOutlet for components whose font style we want to change.
Custom fonts does appear when we edit text in xib, but they don't get applied at runtime.

Resources