space between word is too large

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

space between word is too large

Postby corwl » Fri Apr 28, 2017 3:36 am

Dear Sir,

VPE_I 32.610 is used.
Space between word is too large when I add a sentence.
It's same with Dycodoc.
It looks unnatural.
How can I change space betweeen words?

below, You can see captured image.
https://goo.gl/photos/6Z4WCC7TEz87hqA5A
corwl
 
Posts: 5
Joined: Fri Apr 28, 2017 3:17 am

Re: space between word is too large

Postby IDEAL Software Support » Fri Apr 28, 2017 10:12 am

This looks indeed strange. What is the paragraph alignment, is it left aligned or justified text?

Is it RTF or plain text?

It might also be a problem with the font, did you try a standard font like Arial?
IDEAL Software Support
 
Posts: 1543
Joined: Thu Nov 18, 2004 4:03 pm

Re: space between word is too large

Postby corwl » Fri Apr 28, 2017 1:03 pm

Actually, I just use vpewrite function with default setting.
I think it's left aligned.

When I use dycodoc, it show same result.

Here is the result of adding text component in dycodoc.
https://goo.gl/photos/4aJ31358HTjku7qJ7

I tested it with two different computer, and they make same result.
How can I fix it?
corwl
 
Posts: 5
Joined: Fri Apr 28, 2017 3:17 am

Re: space between word is too large

Postby IDEAL Software Support » Fri Apr 28, 2017 6:02 pm

We have no idea what the problem is. Please send the dycodoc document to our support e-mail address for analysis.
IDEAL Software Support
 
Posts: 1543
Joined: Thu Nov 18, 2004 4:03 pm

Re: space between word is too large

Postby corwl » Mon May 01, 2017 4:30 am

I sent email to <support@IdealSoftware.com> with dcd file attachment.
Thank you.
corwl
 
Posts: 5
Joined: Fri Apr 28, 2017 3:17 am

Re: space between word is too large

Postby IDEAL Software Support » Tue May 02, 2017 7:16 am

The document looks fine here. Therefore I assume you are working on an Asian Windows.

The default charset of VPE and dycodoc is "VCHARSET_DEFAULT", which means it is the charset of the machine on which VPE is currently running. This might cause trouble on an Asian Windows.

For VPE, do the following: After calling OpenDoc(), set the property Doc.CharSet = VCHARSET_WIN_ANSI

In dycodoc you can specify the charset in the properties pane for each text object.
IDEAL Software Support
 
Posts: 1543
Joined: Thu Nov 18, 2004 4:03 pm

Re: space between word is too large

Postby corwl » Mon May 08, 2017 3:38 am

Dear Sir,

I am using Korea windows and it seems to me that this is the cause of spacing.
But converting character set did not work.

Instead, I tried to write each word separately by measuring the size of words with VpeRenderWrite.
However, VpeRenderWrite returns larger value than the actual width of the word.
My opinion is that this is related to the spcing problem.


Alternatively, I measured the width of the word by drawing text with Windows function.
Then I write each word through VpeWrite separately with the width of the word with spacing.
Korean word was made to image and inserted.

Anyway, I can write (or draw) the whole paragraph now.
Thank you for your help.
corwl
 
Posts: 5
Joined: Fri Apr 28, 2017 3:17 am

Re: space between word is too large

Postby IDEAL Software Support » Mon May 08, 2017 1:06 pm

Setting Doc.CharSet = VCHARSET_WIN_ANSI should work. We have a customer using Chinese Windows with the same problem. Setting the CharSet property solved the problem completely for him.
IDEAL Software Support
 
Posts: 1543
Joined: Thu Nov 18, 2004 4:03 pm

Re: space between word is too large

Postby corwl » Wed May 10, 2017 3:23 pm

https://goo.gl/photos/viazTBuLeSv4rsi3A

I tested ansi character in both dycodoc and vpe dll.
Converting character set from DEFAULT to ANSI did not make any change in text style.
corwl
 
Posts: 5
Joined: Fri Apr 28, 2017 3:17 am

Re: space between word is too large

Postby IDEAL Software Support » Thu May 11, 2017 6:15 am

Strange. We will dig into this.
IDEAL Software Support
 
Posts: 1543
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 11 guests

cron