WindowsLookAndFeel - What font is used - Is there a way to change it - swing

UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
What font gets used? If I have an app, which is using the windowslookandfeel, is there a way to change the font used on a local system, by changing the default font for this L&F - I am looking at changing Windows options - such as Control Panel/Registry/System Properties etc..
Thanks

Multiple default fonts are used in the Windows L&F. The most used one is Font.DIALOG, but it also uses Font.SANS_SERIF, and Font.MONOSPACED. Changing the default is done via the class UIDefaults (JavaDoc).

Related

How to REALLY disable emoji for symbols

I would like to use a regular symbol (the up-right-arrow) in a Wordpress menu. I copied the symbol character into the required field and it looks good on desktop. For some reason, the iPhone I use displays an emoji instead of the character. I already activated the Wordpress plugin "Disable Emojis" but this doesn't help. How do I force smartphones to display the simple black arrow instead of a colored arrow emoji?
The usual searches just bring up the idea with the Wordpress plugin which probably disables emojis globally but still lets smartphones override that.
Screenshots (Imgur)
You will never get the same emoji / symbol depending on os, service, browser, app, etc ... because it is interpreted.
Find below some examples :
1. On Twitter
2. On FaceBook
3. On Instagram
4. On WordPress wysiwyg as text content
5. On WordPress wysiwyg as visual content
For the text variant, use the text presentation sequence:
U+2197 U+FE0E (↗︎)
For the emoji variant, use the emoji presentation sequence:
U+2197 U+FE0F (↗️)
For the default variant, use only the character:
U+2197 (↗)
but, as already mentioned, how will it be displayed by default depends on many factors: OS, browser, etc.
See: Emoji Presentation Sequences, v11.0

Default Chinese Characters in SSRS

We use SSRS (2008 R2) to present data from several languages. We use labels with the Arial font. If the characters loaded from the database cannot be presented by Arial, SSRS converts them automatically to the relevant font that includes the special characters.
It works well with several languages. However, with Chinese the default choice of SSRS is font MingLiu. This font is quite uncommon in mainland China and the locals say that it is unusable. I would like to use the SimSun font instead.
How do I configure SSRS to force SimSun instead of MingLiu? Of course, I can create new labels with the SimSun font, but that will require recreation of all the existing reports that are already configured with Arial.
Thanks
My boss found a solution to force the SimSun font:
Each one of the report's Placeholder should be configured as HTML.
This is done via the placeholder's properties / General, and then
choose "HTML - Interpret HTML tags as styles" instead of the default
"None - Plain text only"
The value to be assigned to the placeholder should
include the HTML tags to force the SimSun font. For example: <font face="SimSun">订单确认</font>

What Font Does the ToggleSwitch Use

I'm just trying to figure out the ToggleSwitch font that comes with the WPtoolkit, so that I may apply a similar style to other items in my app. How may I determine this?
WPToolkit uses the default Windows Phone resources for fonts/colours.
For the exact styles you can look at the Generic.xaml theme in the WPTookit source
In this case it's using PhoneFontFamilyNormal, FontFamily="{StaticResource PhoneFontFamilyNormal}"
For a full list of Resources for WP take a look here

Intellij IDEA 11.0.2, set tab size for custom file type?

I'm using a fully licensed version of Idea.
I just created a custom file type for *.jade files. Generally, I use a 4-space tab-size, but for *.jade files, I want to use a 2-space size.
That's it. I don't want a work around. I want to be able to set a specific tab size for only *.jade files.
http://www.jetbrains.com/idea/features/code_style.html
says: "...tab and indent size can be specified per file type."
It's not possible to specify indent settings separately for custom file types right now. Such functionality is provided by the language specific plug-ins (even some language plug-ins do not allow to set custom indents and use settings from the General tab).
There is already a feature request submitted 7 years ago and with zero votes. Feel free to vote.

HTML File upload field style

I am trying to create a file upload field that has a little bit of style to it, but I seem to be having problems finding examples of this. I know part of the reason is that the field itself varies from browser to browser.
Any ideas how to do this? Or is there a way to do this without using a file element of a form that can be styled?
If what you mean is the text field for the file names, you can use the input[type=file] selector in the css files. For example :
input[type=file] { background-color: red; }
If what you mean is the file selection dialog box, I think it's browser/OS dependent and there's little (if any) you can do about it.
I have come up on this problem before. Unfortunately, file uploads are nearly impossible to style consistently across browsers. As of CSS 2, I think, the W3C standard specifically leaves behavior undefined--think of how many ways it would need to be implemented on different platforms. Firefox, for example, generates anonymous button and input elements inside the file upload element which only inherit some of the properties that you set on the upload element itself.
You can get some to work using, for example, Furuno's method, but know that the behavior will be spotty and differ widely across platforms/browsers.
Here's some links I found:
QuirksMode Article
One Extra Pixel Article (look for the file input styling section)
This would fit for your requirement.
If you are using jQuery, have a look at this plugin - https://github.com/ajaxray/bootstrap-file-field
This tiny plugin will display the file input field as a bootstrap button (with configurable classes) and will show selected file names (or selection errors) beautifully.
Additionally you can set various restrictions using simple data-attributes or JS settings.
e,g, data-file-types="image/jpeg,image/png" will restrict selecting file types except jpg and png images.