I've got a .NET Compact Framework application that uses a Zebra QL220+ printer. I drive the printer via CPCL printer language, and I now need to print some output that cannot be achieved with just the resident fonts. I'd like to create some pre-scaled fonts (which are then downloaded as .cpf files to the printer) but for the life of me I cannot find how to do this. I have the Label Vista tool from Zebra, and despite the fact that the Help file states this can be done, my "Fonts" menu is disabled. Does anyone know a way to create the CPF files?
Hmm, I don't know why it's grayed out in v3.5.2, 3.5.1 works, but I couldn't find a download link for it.
Try this though.
Click on Tools->Text and then click in the label somewhere to enter a
Under "Type of Font" select TTF if you want to convert a TTF
Click Select Font
Pick your font and click OK
Now "Make Font" should now be enabled, click it
Now you can save the font as a cpf file
hope that helps!
Related
i have an app that will display some emojis and the correspondent name.
i'm using kCFStringTransformToUnicodeName to get the name.
but i want to localize the name like macOS, as you can see in the attached picture, macOS localize "Grinning Face" to "visage avec large sourire".
could you tell me how to localize these names and if there's no API, where can i found the localization files used by macOS.
thank you.
There is no api for this job. Unicode character name is standardized only in English.
The macOS use localization files to achieve this.
You can find the location of The CharacterPalette app:
Option+click on the Apple menu and choose ‘System Information’ (called ‘System Profiler’ in earlier releases of OS X).
From the side menu, look under ‘Software’ and choose “Applications”
My app's location looks like this:
Locate the CharacterPalette.app,right click -> show package,you can find the localization files :
But I can't open it correctly , the file is full of unreadable code.Maybe it's encrypted.
You may have to copy paste the names one by one.
I would like to embed a .ttf font resource into my EXE and dynamically load it. This particular method expects the resource to be of type RCDATA. So, I go to Project > Resources and Images... press Add..., and pick my .ttf file. The resource type FONT is automatically selected with an identifier of just 1. I change the type to to RCDATA and type in my own resource name.
Problem: When I press Ok I get an error that the identifier of a FONT resource must be a numeric value. But it wasn't FONT type anymore, I had changed it to RCDATA.
How do I get past this problem?
(asking and answering together because I'm sure others have seen this problem)
It seems to be just a small bug in the IDE. When you first select your .ttf file in this resource screen, change the type, press Ok without changing the identifier (leave it 1). Then, open the same screen back up, change the identifier to your own, and press Ok. It only works if you close and re-open the Resources and Images screen.
You could of course also write your own .rc file and do everything manually without this screen.
Unlike Jerry says, you can simply "load" the font file in the Resources and Images... dialog. Once you selected it, you can change the type to RCDATA (combobox an the lower right) and if you have done that, you can change the name to whatever valid name you choose.
There is no need to close and re-open the dialog.
I tried this in XE2 and in XE7, and it works as expected. The FONT type is merely the default for, well, font files. That can easily be changed in the dialog.
This doesn't look like a bug to me. Just plain default behaviour when you load a font file. Just like there is default behaviour when you load a .pas file in the editor.
If you want to use an .rc file, it is quite easy to generate one in the editor (new text file with extension .rc) and then you can add it to your project. The IDE will take care of the rest. No need to do anything manually there either, except of course editing the .rc file.
I am very new to programming and started using sublime text 2 as an editor for corona sdk and I am really liking it aside from one small problem.
My Problem:
When I open a new file in sublime text and then save it as a .lua file it does not save as a .lua. I use the drop down menu to select save as .lua. When I look at the file in my project folder the filetype is specified as only "file". This problem wont stop me from using sublime but it is very annoying. Any help would be appreciated.
Try just typing the full filename you want when you save it, e.g. filename.lua
I want to register a file type in windows and make a program with Delphi to draw the icon of file according to its contents (something like a custom icon format). How can I do this?
Thanks to Nortd and user539484 comments, I searched the internet for "shell icon handler Delphi" and found a good sample here, and also Shell+ components has a component to do this.
I have a problem. I want to copy a caption of a label from a Delphi windows application .When I copy the caption label and paste in a notepad I get some weird text like " ÇÓÜÜã ÇáãæÙÝ " !!
How do i resolve this ?
The caption/text which I am copying is in Arabic. All the fonts are installed , Arabic text is working fine. But I am encountering this problem when I am copying caption of labels only from Delphi win32 aaplication.
Maybe you should set up the notepad app. to use the ANSI Character Set (from the open file menu) if your Delphi app. was written in an older compiler (prior to D2009).