poi: sheet.autoSizeColumn needs .ttf files - apache-poi

call to autoSizeColumn hangs
according to this URL
http://apache-poi.1045710.n5.nabble.com/HSSFSheet-autoSizeColumn-method-doesn-t-work-properly-on-Linux-system-td4270552.html
I need .ttf files that are not included in JDK or JRE distribution under solaris.
It seems working under windows
the problem is i have been looking for these files for 4 hours without success

If it generates .xlsx the default font is Calibri which font is from Microsoft "ClearType" font package and your Linux probably do not have it. Install it or use a font provided in system running the softwate.
See more about fonts on:
https://www.pcworld.com/article/2863497/how-to-install-microsoft-fonts-in-linux-office-suites.html

Related

Sublime Text Font from file

I have ST as a portable version and use a custom font, but don't have admin rights at my work place to install it. Can you somehow point "font_face": to a local .ttf file?
I'm aware of the possibility regfont, but that's a clunky hack.
For my build system I use "cmd" : ["${packages}/../../../MSYS2/mingw64/bin/gcc", but such a path doesn't work with font_face as it seemingly doesn't accept .ttf
Sublime doesn't load font files directly in any way, it uses the face name you use in the setting to look up the appropriate font in the OS's font catalog (in a manner that depends on the operating system it's running on) so that it can use that font for rendering.
As such if you want to use a font in Sublime I believe your only option is to use some utility such as the one you mentioned in your question to temporarily register a font with your OS so that Sublime can see it.

SFML Font: failed to load font

I'm using VS 2015 with the latest sfml. All the configuration works. I'm using debug libs (...-d.lib), etc.
I'm calling font.loadfromfile() in my main function. I placed the font file into my project folder. I checked over and over again that the default directory for VS is my project folder. I even manually changed it to "C:\sfmlprojects\sfmlpong\sfmlpong\" just to be sure. Although the font file is in that folder, I'm still getting the error "failed to load font ... ".
I've looked at dozens of posts and every single one of them either says to double check font file is in the right location, or a mixing debug/release lib issue, either of which seems to be my problem.
I am using VS 2015 on a virtual machine on my Mac. Could this be messing up the program directory? This is the only reason I can think of that would make me place the font file in the wrong directory.
Any insight as to why font is failing to load even though its in the right directory/with the right libs would be immensely helpful.

Font smooth issue, fonts are not looking good in Debian QT [Embedded Qt]

I am using qt-x11-opensource-4.8.2 Debian Jessie on BBB Embedded device.
Steps I have tried to solve the Issue:
Configured the Qt font libraries and Transferred to the Board -> configured the font path properly.
Qt Creator Build & Run Changes has been done to run the Qt application on the Embedded device. Added the Environment variables [QTDIR, QT_QWS_FONTDIR & LD_LIBRARY_PATH] to the Build setup.
Downloaded all the QtGui Dependencies libraries for X11 in Embedded device.
X Rendering Extension; used for anti-aliasing, Run the application as cmd: ./Teledyne -xrender
Q_WS_X11 macro is defined in the code for support embedded Linux project, which will Export all X11 related functions.
Used the Qt Resource Embedded Fonts [Roboto & VeraBd] and Run the application
Used the Qt PreferAntialias and PreferFullHinting option to enable the smooth font.
Installed the basic font packages and configure them
cmd : apt-get install ttf-dejavu ttf-liberation
Using the XLFD -X logical font Description
cmd : xfontsel
Tried to change the font width point size and pixel size
Configure the XTT and Created a xtt font folder and loaded the font path to the Xservers session
cmd: xset +fp /usr/share/fonts/X11/xtt
Checked whether the lightdm may depends of the font configuration
created file : ~/.config/fontconfig/fonts.conf
link:https://lists.freedesktop.org/archives/lightdm/2015-April/000785.html
Create a file called .fonts.conf in home directory -> added content for the antialiasing, which will Enable subpixel-hinting and font-smoothing
Link:https://wiki.debian.org/Fonts
Created a Qt application with the few available fonts e.g.dejavu sans,Fixed[Sony],Bitstream Vera Sans,Courier,dejavu serif,Times
Tested the above fonts Qt application in the Device.
Any suggestions what might be causing this Issue ?
Please can any one help me on this, I am struck :(
Thanks in advance.
Are you compiling Qt with support for fontconfig?
We have been having similar problems related to bad rendering and
sometimes even non readable fonts, and after installing the dev
package of fontconfig and recompile Qt with support for fontconfig
everything works as expected.
At the end we've been getting again same problem of fonts being shown incorrectly ( basically bad rendering ) and was because RenderType uses which is defaulted to "Text.QtRendering" and we need to use "Text.NativeRendering" to have the proper rendering on platform used ( linux ).
http://doc.qt.io/qt-5/qml-qtquick-text.html#renderType-prop ->
Select Text.NativeRendering if you prefer text to look native on the
target platform and do not require advanced features such as
transformation of the text. Using such features in combination with
the NativeRendering render type will lend poor and sometimes pixelated
results.
Hope it helps.

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.

error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT?

what is this Error, and how to resolve it?
I am using Visual studio 2005 for Smart device MFC developement,
Is upgrading to 2008 can solve my problem.
Error 85 error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT
Thanks
this might help you:
http://www.axialis.com/tutorials/vistaicons.html
It looks like vista icons now use PNG headers. The error is slightly false though as its not an old DIB its just a header it doesn't recognize, PNG.
How was that icon created? Long ago Visual C++ 6.0 had its own little way of creating icon .ico files. Probably not using PNG so this might be the way to go is to find some program to emulate that and create an icon using the old DIB way. Or upgrading to 2008 :)
Actually there is another way not mentioned here in the other answers.
If you would install and integrate a more recent (same or later release date than VS 2008) SDK with VS 2005, that also resolves it. You can also go to C:\Program Files\Microsoft Visual Studio 8\VC\bin (or your equivalent of the path) and replace the files rcdll.dll and rc.exe with the ones from a more recent VS, WDK or SDK.
Side-note: the version of rcdll.dll and rc.exe must match, that is you need to copy both at once from your source (be it VS, WDK or SDK). For me any version starting with 6.0 or 6.1 worked. That's any version starting from the compilers that accompanied the Vista SDKs and VS versions or later.
There are actually 2 situations I've encountered that lead to this error RC2176.
As you probably know, a Windows .ICO file can contain multiple images for different sizes and color depth. VS2005 throws this error in at least two situations (unrelated to DIB)
.PNG images in the icon (as described in Codejoy's answer)
256x256 or larger images in the icon
By using GIMP to shrink the largest image size to 128x128, and avoiding .PNG, the problem is resolved with VS2005. Or, upgrade to a newer VS ;)
I had this problem in VS2012 for which I googled but didn't find anything else but this link to a MSDN site which talked about opening it up with sdk-paint , so in my project I doubleclicked the icon that was responsible for the error and deleted the PNG format and voila program started.
Greetz
Richard
The compressed/packed 256x256 was the problem for me. Once I unchecked the option to save as compressed (for Vista) in my icon editor app, the problem went away.
There is another situation I encountered which triggered the error, that is a corrupted PNG file. I've used the sed command to globally replace some strings in the project folder, and it just replaced the (looks liked) windows line ending to UNIX one, which caused my image files corrupted.
So, maybe there are some bugs in the PNG parser of MFC library, which cannot handle malformed input files.
Best resolution I have come across is from Axialis where they offer guidance of saving the ICO file in uncompressed PNG format.
https://www.axialis.com/docs/iw/How_to_use_a_Windows_Vista_Compressed_Icon_in_a_Software_Project.htm

Resources