Is there a way to increase the size of the 4 point font used in instruments 9?
Related
The column header text showed properly when I first installed workbench 6.3. (on Win 10).
I recently set something... think increased the font size, and the titles increased, however it looks like this (screen shot below).
How do I increase the height to fit the increased font size?
Apparently, I can't even get it back to previous state. Tried reducing the fonts size, it doesn't seem to work.
I'm trying to create MATLAB figures to put into a paper. The paper has very specific sizing instructions for figures that I'm having trouble matching in MATLAB. The figures need to be no greater than 3.5" width, >300 DPI, with 8pt font.
In my code, I use the following to try to set the parameters:
set(gcf,'PaperUnits','inches');
set(gcf,'PaperPosition',[0 0 3.5 3.5]);
xlabel('x-axis label','FontSize',8);ylabel('y-axis label','FontSize',8);
set(gca,'FontSize',8);
print('-djpeg','-r300','filename.jpg')
This should be giving me a 300 DPI, 3.5"x3.5" JPEG image with an 8pt font size. However, when I import the image into Word, it becomes 6.5" x 6.5" and the font size is larger than Word's 8pt font. Even if I resize the image, the font size is still too large, though it should maintain the same DPI. Are the FontSize and PaperPosition parameters not working as I expect they should or is Word doing something strange for importing?
The font size issue was caused due to differing fonts used in MATLAB and Word. Once I learned about set(gca,'FontName'), the font size seemed to be correct when the image was manually resized to 3.5" x 3.5".
The image size issue seemed to be related to saving it as a JPEG. Once I swapped to PNG, the image was the correct size by default. Looking into the JPEG properties, it had the correct number of pixels for a DPI of 300 at 3.5", the sole issue was that it would have to be manually resized. Thanks for the comments that led me to finding a solution.
I am using a plugin that prints useful info in some grid (see picture below). However, due to the resolution of my laptop (2880x1620) I see nothing - the row height is too small. Is there a way how to increase this row height? I do not want to decrease font size as that would be almost unreadable.
I'm using a CCLabelBMFont to display a very large letter in my game. The SD font size size is 300, HD font size is 600
letter =[CCLabelBMFont labelWithString:#"A" fntFile:#"font-test4.fnt"];
with the 4 supporting files (font-test4.fnt / -hd.fnt and font-test4.png / -hd.png
Everything works fine in both simulator modes (retina and non-retina).
However when running on an iPhone4 the CCLabelBMFont class asserts when sanity checking
// scaleW. sanity check
propertyValue = [nse nextObject];
NSAssert( [propertyValue intValue] <= [[CCConfiguration sharedConfiguration] maxTextureSize], #"CCLabelBMFont: page can't be larger than supported");
// scaleH. sanity check
propertyValue = [nse nextObject];
NSAssert( [propertyValue intValue] <= [[CCConfiguration sharedConfiguration] maxTextureSize], #"CCLabelBMFont: page can't be larger than supported");
I have no idea why this is happening.
You're hitting the maximum texture size limit. Check the png files of your bitmap font, specifically the HD variant. If it is larger than 2048 pixels in either dimension (width or height) then only the iPad 2 (with iOS 5.1), iPad 3 and iPhone 4S can load that texture. These devices support a maximum of 4096x4096 textures, the older devices only 2048x2048.
Besides that, a font with font size 300/600 is just ridiculously large. You should think of alternative ways of doing what you're trying to achieve, because such a large font size is a huge waste of (still precious) memory.
The Simulator doesn't care much about these issues though. It's running on your Mac, can use all your Mac's memory and other resources.
for ipad
e.g.
for pixel size 10x10 image, how much memory is used?
provide some other contribution:
usually for a normal iPad, it start with app-usable memory of 190-200mb
this number decrease if background process / other apps is running
many thanks!~~~
10 x 10 x 4 = 400bytes for that image, so it's 4 bytes per pixel. (GRBA).
Also it is normal for background app to take some memory. iOS will free memory if needed by any app.