Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non integer font sizes specified with <FONT size= #129

Closed
berthendrickx opened this issue Jan 25, 2023 · 1 comment
Closed

Non integer font sizes specified with <FONT size= #129

berthendrickx opened this issue Jan 25, 2023 · 1 comment

Comments

@berthendrickx
Copy link

berthendrickx commented Jan 25, 2023

I noticed that if you specify FONT size="9.5pt" this is converted to a font size of 9 in Word, instead of 9,5

I suggest a small change to correct for this in Unit.cs:

public double ValueInPoint
{
	get { return (double) (type == UnitMetric.Point ? Math.Round(this.value * 2) / 2 : (float) valueInEmus / 12700L); }
}
onizet added a commit that referenced this issue Jan 23, 2024
@onizet
Copy link
Owner

onizet commented Jan 26, 2024

I have committed this code. Thanks for reporting

@onizet onizet closed this as completed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants