![]() |
#1
|
|||
|
|||
![]()
Hello.
I work in CorelDraw 12. I have a code that when you change the text to curves as the name of the curve gives the name of the font used and its size in points. You test. ![]() Quote:
Thank you in advance and best regards. ~GrzJanik Last edited by grzjanik; 08-09-2011 at 13:33. |
#2
|
||||
|
||||
![]()
I am getting old, took me a few minutes to remember how to do this in version 12. :-) This should work.
Code:
Public Sub ConvertALLTextToCurves() Dim p As Page For Each p In ActiveDocument.Pages ConvertShapes p.Shapes Next p End Sub Private Sub ConvertShapes(ss As Shapes) Dim s As Shape For Each s In ss Select Case s.Type Case cdrTextShape ConvertShapeCurves s Case cdrGroupShape ConvertShapes s.Shapes End Select On Error Resume Next If Not s.PowerClip Is Nothing Then ConvertShapes s.PowerClip.Shapes End If Next s End Sub Private Sub ConvertShapeCurves(s As Shape) Dim strName As String strName = s.Text.FontProperties.Name & " (size: " & s.Text.FontProperties.Size & " pt)" s.ConvertToCurves s.Name = strName End Sub -Shelby |
#3
|
|||
|
|||
![]()
Hi.
Shelby, very big thank you for your time and willingness. The code is work in entire document. Your the best. ![]() Regards. ~GrzJanik |
![]() |
Tags |
all document, convert, curves, font names |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
font change problem (otf-related?) | marvin | CorelDRAW/Corel DESIGNER VBA | 4 | 20-10-2009 05:49 |
Change font | Manuel | CorelDRAW/Corel DESIGNER VBA | 5 | 16-07-2009 03:40 |
Change Font Newbie Help | FilmLadd | Macros/Add-ons | 2 | 23-11-2008 17:52 |
Convert font to curves | Panjtan | CorelDRAW/Corel DESIGNER VBA | 2 | 15-10-2007 22:43 |
Select specified text, change font size? | fiddler2b | CorelDRAW/Corel DESIGNER VBA | 3 | 23-04-2006 08:11 |