Can't get Terminus to work with PHPStorm - linux

The original Terminus just does not appear available in PHPStorm.
I tried installing Terminus.ttf but this one has different sizing and literally broke the look and feel of the whole system (e.g., code in browser is not readable). Besides this Termius in PHPSotrm is not as accurate as the original one.
Is there any way to make the original Terminus work under PHPStorm?
I'm using Debian testing.

JVM supports only TTF and OTF fonts (OTF since 1.7), so you need a version of Terminus in the compatible format. Original one will not work.
I've made a TTF version of Terminus many years ago, but it's far from perfect. Probably there is a better one now somewhere.
It may help if you change the font name with a font editor so that it doesn't conflict with the original one (like TerminusTTF). Use the TTF font in the IDE and the original font in the system.
Also check this issue, it has some details in the latest comments how font appearance can be improved in Java applications on Linux.

Related

Previewing and Typing in Unicode font (Private Area / Basic Multilingual Plane) in Linux for SMuFL

I would like to make a change to an open source Android app which uses the Bravura font implementing the Standard Music Font Layout (SMuFL) fonts. I am developing on Linux.
The app displays musical notes with things like
<string name="notef_c5"> == ==</string>
which is displayed like
I now need to change things and I would like to see what I am going to do, rather than semi-randomly changing the Unicode numbers and see what happens. So I installed the font on my Linux desktop from github, by simply copying the SVG that the app is using into my global font directory and that did not work (fc-cache said /usr/share/fonts/svg/Bravura: caching, new cache contents: 0 fonts, 0 dirs). The same procedure for the OTF did work. This could be a problem down the line, since the app is using slightly modified version of the SVG, so any hint on that could help, but it's secondary regarding the question.
In fact I want to use "something" to display the font, and I tried many things, including Charmap and FontManager (which is almost the same as FontViewer). Charmap is the worst, displaying basically every single font installed on the machine even if I select just the Bravura (why is that???!) -- FontManager does the same (???!) -- FontViewer is almost passable, in that (when the "Characters" tab is selected) it display empty squares for the characters not defined in Bravura. Therefore with lots of careful scrolling it displays the "actual things" I am looking for, but it does not show their unicode values, and it's an extenuating search of few actual characters in a huge ocean of empty squares. So it's a no go anyway.
Is it possible that the best solution is just to blindly type Unicode values as described in the docs and see what happens? I know, if I were running Windows or Mac I could use Dorico SE but more generally there must be a better way of using Unicode in Linux, perhaps built for other purposes?
If you’re looking for specific symbols in the SMuFL specification, the full list of glyphs is available on the SMuFL website. (Note that the fonts themselves know nothing about music typesetting, they are simply collections of shapes to be used by a typesetting program. Even the simple example you provided is a composite of several carefully scaled and positioned glyphs, and simply changing the character codes may or may not work as intended.)
If you’re looking for ways to input Unicode characters on Linux, see the many suggestions provided here: How to type special characters in Linux?

MyEclipse's accelerate keyszoom in(ctrl+-) and zoom out(ctrl+=) are invalid

I use myeclipse (version :myeclipse-2015-stable-3.0 or myeclipse-2016-ci-7) in windows 7, and I want to zoom in/out the fonts while editing by accelerate keys ctrl+ =/-,but they don't work.
I don't want to use the way that windows--preference--color and fonts--...to change fonts size because it isn't convenient,there is no accelerate keys confilcts also,and after changing accelerate keys,they still don't work.
Any ways to solve this problem?
Those commands don't seem to be defined in the General->Keys preferences page, for text editing, but even though they are defined in eclipse Mars (on which MyEclipse 2016 is based), they don't work there either. I can't find an eclipse bug for that, though there probably should be one.
However, I did find a solution, if you're willing to update to MyEclipse 2017 (the CI stream or the Stable stream), since the zoom function works fine there.

Display Mixed Complex Script in Text Editor via Harfbuzz & FreeType

Some Background here:
I've downloaded this example and made it run on my Ubuntu. Everything's fine. I put my own OpenType font into the project and it works fine too! I made sure that HarfBuzz supports my font and my language.Now I need to go further.
I need some guide here:
In the above example,three kinds of language each has it's own font to support the display. I mean,these three languages is rendered separately(as to my understanding of the code).
So, how to make HarfBuzz to select the correct font when many kinds of language are mixed together and render them at once? I mean,without making a font file that supports all languages in the world.
In this example,Chinese script is vertically displayed(which is just as I want),but if I make the Latin script's text_directions to HB_DIRECTION_TTB,which is of course not what I want. I want the whole word 'LATIN' to rotated 90 degree.
So, how can I achieve that? how to make that happen without breaking anything about Chinese layout?
3 .Last but not least,after solving the above problems, I want to make a Text Editor to display and edit many languages at the same time,same place. I don't know if I have to do some work on HarfBuzz or FreeType or implement a text editor that supports this complex text layout? Is there any example that I can refer to ?
Thanks in advance for help.
HarfBuzz is doing shaping just on same script and directionality, you should first split your text, guess or find language and direction of that chunk (using ICU or smt else) then send it to a shaper. Generally on Linux for finding right installed font for a script, you can use fontconfig.
I do not know, I suggest making separate question for that.
Making a text editor starting from shaper is not easy task. You should do bidi, line wrapping and ... that all have their challenges. I suggest use higher level abstraction (pango). For instance browsers doing a lot to support these.

where is Fixed[Misc] font

In kate (or QtCreator), I've a font named "Fixed[Misc]". I'd like to retrieve the font file(s) but I didn't find them:
in my font directory, I've a "misc" directory, but I can't find exactely the font I've in kate...
could you give me some informations on how it works and how to get the glyphs I've in kate ?
Fixed[Misc] is the default monospace font of the legacy core fonts subsystem of x-windows
You do not want to dig into this, this subsystem is a mess of legacy fonts in weird pre-opentype multi-file formats and incomplete unicode coverage which are quasi unmaintained and have been on the killing block for about a decade (and wayland/mir will finish them up soon).
I'm not sure if kate is even supposed to show you those fonts if a modern font systems like fontconfig is activated (this may be distribution dependent) but if you're only seeing core fonts in your apps you have a deployment problem because QT and KDE do know how to do better when built/deployed properly.

qtconfig fonts list on linux

I've built qt 4.7.4 on ubuntu and my application fonts look terrible. I used qtconfig to try and make the font more pleasing to the eye, but most look really bad (not aliased, and the list of fonts appears incomplete; e.g the clearlooks font in gnome uses "sans", but this doesn't appear in the list of available fonts in qtconfig).
However, if I install qtconfig-qt4 using aptitude, the fonts rendered in that application look great and there are loads more fonts available. The settings however are not applied to my qt applications.
I have no idea where qtconfig is picking up the font settings it makes available nor where it is saving the settings. The qt docs don't seem to help as far as I can see.
If someone could help me with either setting up the qtconfig in my install (maybe I need to configure with some different options - I used -debug-and-release -fast -qt-libtiff -no-webkit ?) or getting my apps to pick up the qtconfig-qt4 settings I would be most grateful! I would prefer the former!
Cheers!
Had a similar issue where qtconfig doesn't seem to be picking up the system fonts. Found some settings in kubuntu under appearance - fonts where I changed "use anti-aliasing" to enabled (from system) and then when configured I enabled "use sub-pixel rendering".
I think this gets stored in a file ~/.fonts.conf.
Still haven't figured out how to get all the fonts to appear in qtconfig though.

Resources