Comments (12)
Note that at TEST=509 the values do match, which makes me think perhaps a negative delta gets rounded differently between the two environments.
from uharfbuzz.
Please try with --font-funcs
set to ot
vs ft
. I feel like that's where the difference is coming from.
from uharfbuzz.
Ha, calling hb-shape with --font-funcs=ot
indeed makes a difference. The output then becomes:
482 - 491 491 491.0 True
491 - 495 495 495.5 True
500 - 500 500 500.0 True
509 - 505 504 504.5 False
518 - 509 509 509.0 True
Which is weird, because that also doesn't match the output of uharfbuzz, but differently.
from uharfbuzz.
I have to dig in, but I wonder if Python is changing FPU rounding mode..
from uharfbuzz.
am investigating this also
from uharfbuzz.
Okay, this is fixed with 985eda0 I'll add it as a test also
from uharfbuzz.
What fixed it?
from uharfbuzz.
I'm still seeing the same results in my local build (macOS 10.15)
from uharfbuzz.
What fixed it?
Good question! Maybe somewhere in skbuild / cmake process another roundf implementation / libm was inserted.
I'm still seeing the same results in my local build (macOS 10.15)
Are you passing --font-funcs=ot
?
from uharfbuzz.
Of course I should test whether I had the issue before the change, sorry for closing eagerly, at least I can say I don't have the difference on my machine and that's regardless of passing HAVE_ROUNDF to harfbuzz.cc compile or not.
from uharfbuzz.
I updated my hb-shape executable, and the results now indeed match when using --font-funcs=ot
, so my original report (based on HB 2.6.2) was out of date. So there's indeed no issue with uharfbuzz.
That said, I'd argue that the values returned with --font-funcs=ot
are incorrectly rounded, and should match the results of --font-funcs=ft
, but that would be a HB issue.
from uharfbuzz.
Thank you!
That said, I'd argue that the values returned with --font-funcs=ot are incorrectly rounded, and should match the results of --font-funcs=ft, but that would be a HB issue.
Feel free to file that as a bug against harfbuzz.
from uharfbuzz.
Related Issues (20)
- Obtaining `hb_font_extents_t`? HOT 3
- access to hb_font_set_ppem and hb_font_set_ptem HOT 4
- `Blob.from_file_path` does not bail on error HOT 4
- Files missing in 0.24.0 sources HOT 2
- New Release for Repacking Bugfix HOT 3
- get_glyph_shape() should be a method of Font rather than DrawFuncs HOT 6
- New release needed to grab repacking bugfix from harfbuzz HOT 4
- New release needed for harfbuzz 5.3.1 HOT 1
- Build harfbuzz with experimental features by default? HOT 7
- Builds _draw_test_funcs.cc into the library
- Speeding up the CI/CD pipeline HOT 3
- can't install uharfbuzz due to cython new version 3 HOT 4
- Wheels for alpine/musl HOT 2
- Crash when repacking fonts with latest binary wheels (v0.37.1, v0.37.1.post1) HOT 45
- Add support for synthetic bold HOT 1
- New release to pick up bugfix HOT 7
- RFE: build uharfbuzz against system isnatlled harfbuzz library HOT 3
- Hi
- make use of info.cluster HOT 3
- v0.39.2 release hiccups HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uharfbuzz.