OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16-02-2005, 15:17
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default Font Book Creator

I am currently undertaking the project of writing a GMS that creates a font sample book.

If anyone would be interested in using this GMS, let me know and maybe give some suggestions that you would like to see in the macros.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #2  
Old 17-02-2005, 10:15
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 9
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default

Have you tried the Print Samples in Font Navigator that comes with CorelDraw. I know my wife has done this, and she seemed pleased with the results. Gave her the sample book she was looking for.

Shelby
Reply With Quote
  #3  
Old 17-02-2005, 10:50
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

I've tried using that, but when it comes to Dingbat style fonts, the character map dosen't print large enough to see what the image is per-say. I'm wanting to develop something that can customize the look and feel of the book. I've tried other programs on the market and I'm really not satisfied with any of them. The only major drawback that I see to doing this through Corel and VBA is that you can only use the fonts that are installed on the system. If you want to use other fonts in your collection you will have to install them long enough to make the book. (Unless Alex knows of a way to access uninstalled fonts).

Anyway, I'd eventually like to set this up so that it uses unicode characters for languages other than English. (That's a lot of prgramming down the road...)

I'm hoping that Alex can answer my question about alphabetizing the combobox list results.
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #4  
Old 17-02-2005, 21:30
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

Quote:
Originally Posted by ddonnahoe
(Unless Alex knows of a way to access uninstalled fonts).
It's funny, but I'm working on exactly that! Creating a catalog of uninstalled fonts. Unfortunately it is too difficult to do. You need to use undocumented Windows API (such as GetFontResourceInfo function). The general idea is that once you have a font file (*.TTF or *.PFM/*.PFB), you can install it temporarily using AddFontResource Windows API function. Then through a call to GetFontResourceInfo it's possible to obtain the font family, font weight and other font properties to actually create an instance of the font. Once this is done and the font is selected into a device context, you can use GetFontData to retrieve any additional information such as the full font name, version, copyright information etc.

Then you need to notify CorelDRAW that a new font is installed, so it can pick it up (by sending WM_FONTCHANGE message to its main window). Then create a font sample, convert it to curves, uninstall the font using RemoveFontResource and continue with the next font.

At least that's my idea of doing it. I hope that once I have it finished, I make it public. As you see it's not just something I can give a few line code example of...

Quote:
I'm hoping that Alex can answer my question about alphabetizing the combobox list results.
Already replied. See here: http://www.oberonplace.com/forum/viewtopic.php?t=882
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
T1 fonts & Bitstream font nav. vs Corel draw 12 & 11 xombie General 2 22-05-2005 17:35
weird font issue bbolte CorelDRAW/Corel DESIGNER VBA 1 21-04-2005 15:20
how to specify the font size in inches bbolte CorelDRAW/Corel DESIGNER VBA 14 26-01-2005 22:19
Bitstream Font Nav Problem ddonnahoe General 0 16-12-2004 08:25
A font creator wizard momo New product ideas 2 03-12-2004 14:01


All times are GMT -5. The time now is 02:05.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com