I've read the tutorials and related questions here but still no luck using a custom font.
I'm on a Windows 7 machine and I've performed the following steps:
Installed the Font (Print Clearly OT.otf)
Copied the otf file to the project directory (same directory as the main.lua)
Restarted the Corona simulator
Used this code to find the font name (Print Clearly OT) and add the build settings: http://coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/
Trying to use the font like:
lettertext = display.newText( "a", 40, 20, "Print Clearly OT", 24 )
Start up the simulator for ipad and I get "could not load font" message.
There was a comment on the link tutorial above, about otf files not working on windows but i assumed that was on a windows mobile device not in the ipad simulator on a windows system.
OTF fonts are not supported in Windows (like you can read at the link you provided) but you could use a ttf version of "Print Clearly OT" font, ttf fonts are supported in all systems.
The other solution is develop with a mac machine, Corona simulator will work better in this case but this solution is really expensive.
Corona SDK also uses the "Internal Font Name". The internal name could be different than the file name and the display name. It might be PrintClearly-Regular or something like that.
But likely it's the OTF's don't work on Windows.
Related
I am currently evaluating building an app that uses the Windows Store architecture (formerly known as Metro). This app will target not just Windows Phone devices, but also Windows 10 desktop.
One function of the app would be to drag-and-drop files onto the app from File Explorer. An example scenario would be to click-and-hold on a JPEG image and drag it into the app, which would then process the file. This would provide the user with another option instead of going through file dialogs.
I can find plenty of resources about using drag-and-drop inside Windows Store apps, but it seems there's no information about drag-and-drop from a "normal" Windows desktop app, such as File Explorer.
With Windows 10, Store apps are promoted to proper windows, rather than fullscreen apps, so this functionality seems to be a bit more useful in this environment.
This comment seems to suggest that it isn't supported, but is dated two years ago and refers to Windows 8. Is this still the case with Windows 10?
Here is video tutorial and simple example on GitHub.
i recently installed fresh win 7 pro OS on brand new DELL i5 desktop machine. while trying to use word 2013, i noticed that text written in Monotype Hadassah font is displayed using Times new roman font.
is anybody noticed such an issue?
thanks.
after some experiments:
the fonts works OK in notepad - which means that probably the problem is in office 2013 and not in the OS itself.
since the font is registered as restricted with respect to the "embedding" ability i thought that it may be due to this restriction, but nevertheless, removing the restriction ( i recommend on TTFPatch utility didn't change the behaviour.
interestingly, i found that saving the document as PDF resulted in correct rendering of the
font - which is pretty satisfactory to me.
I have a very strange behavior in an application that is targeted to Windows Phone 7.1 (and therefor will also run on Windows Phone 8).
For my icons I'm using the Segoe UI Symbol font.
When I run the application on WP 8, the icons are displayed correctly.
If I run it in WP7 though, some of the icons are displayed as rectangles.
I figured that the font on WP7 was probably an older version, so what I did was download the font from my Win8 PC and used it as an embedded font in WP7, but it still does not work.
Anyone has an idea on how to fix this?
Are you reference it as "Resource"?
Try specify full path with assembly name. Like
/Acme.Product;component/Assets/seguisym.ttf#Segoe UI Symbol
Hmm,
I managed to get it working.
What I needed to do was:
Clean the font
Rename the original file name
Rename the font using TypoGraf
Rebuild the project
I'm not a 100% sure that everything is needed but at least this way I got it working.
I have a PDF that seems to have some internal color profile attached. If I render this in iPhone simulator the colors come out as they look in Photoshop which apparently can parse this color profile. If I render the same PDF on Mac I get the same colors (less bright, muddy) as in Preview and Pixelmator.
Is there some way how I can achieve the same (correct) rendering result on Mac as I was getting in iPhone simulator?
On iOS Simulator, I used CGColorSpaceCreateDeviceRGB with a kCGImageAlphaPremultipliedFirst bitmap context. I also set rendering intent kCGRenderingIntentPerceptual, though I don't know if this makes any difference.
on Mac I tried the same settings, as well as all the different kinds of color spaces, but I'm never able to achieve the same result us in Simulator.
I also tried the two ICC based approaches mentioned here: http://developer.apple.com/library/mac/#qa/qa1396/_index.html
I'm getting desperate. What is different between iOS simulator which gets the colors right and Mac? I thought iOS doesn't do color correction, but Mac does? Right now I am drawing the individual pages with PDFKit. Is there a difference in PDFKit on Mac versus iOS related to color correction that makes it work properly on iOS Simulator, but fails on Mac?
I also took a JPG that was rendered from this PDF in iOS Simulator, put it into a new PDF in Preview and there preview and my Mac rendering yielded exactly the same colors as the input.
It looks to me like iOS Simulator has a magical ability to use a color profile embedded in this PDF which Preview or Quartz on Mac does not.
Please help!
kind regards
Oliver Drobnik
I don't know exactly how simulator works, but I can assure you that both Preview and iOS have very incorrect handling of certain features of PDF files; especially when it comes to color management, transparency, overprint, advanced compression of images etc...
Two tips:
On Mac, open the PDF file in Adobe Reader (free download from Adobe.com). The color you see in Reader should be very close to the actual truth. If your PDF file contains ICC profiles (for objects in the file or in the output intent, meaning for the whole file) it will be used correctly. On iOS, also look at Adobe Reader - it currently is the best (highest quality) display tool on that platform.
Secondly, if you want to know what the simulator or some other tool can or cannot do, have a look at the test patches from the GWG (http://gwg.org/ghentoutputsuite.phtml). These patches were designed to give very easy to interpret results on whether certain tools or printers can handle specific PDF features.
These two steps should at least tell you what works and where it works. That should make it easier to figure out what you need to correct.
Unfortunately this is a confirmed bug in CGPDF on Mac. It manifests itself if you have CMYK as a transparency color space. iOS ignores this correctly, the Mac messes up the colors.
I'm porting an app to android from windows mobile. This app has printing support.
In Windows mobile I used PrinterCe framework, but in the android app I have written a framework to create CPCL labels.
Everything works ok except for the font. In the windows mobile app I can set the font doing:
((PrinterCE)m_Printer).FontName = "Tahoma";
but as CPCL manual says I can choose between 7 fonts but tahoma is not in the list.
What method PrinterCE uses to allow me printing using Tahoma??
I think the framework takes care of upload the font to the printer.. but how do I use that font once uploaded??
Update:
I'm using the printer in Line Printing Mode.
I've never used PrinterCE, but I assume it writes text, images, barcodes, etc onto a canvas and then at the end of the document, sends it down to the printer as an image, which is why it would let you use any font available on the CE device. If you want to use a non-native font on a CPCL printer, you have to first download it to the printer. (See this answer here on how to make pre-scaled fonts). Then you would have to use that font in your format.